Answer the question
In order to leave comments, you need to log in
How to transfer styles?
Given: a PHP project that is several years old. All styles in two huge files. It was decided to rewrite on React. They began to rewrite, and the styles are added to the same two files.
Question: how can I more or less painlessly transfer the styles to the react repository, so that a piece of the project that cannot be broken in PHP yet, do not double the styles, etc.
Answer the question
In order to leave comments, you need to log in
They began to rewrite, and the styles are added to the same two files.
Encapsulate styles with components. Don't put all the styles in a common .css file, stick to the best practices (google it, use what suits you).
Here is an example from my project at work:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question