Q
Q
qwas10242020-08-17 01:57:05
css
qwas1024, 2020-08-17 01:57:05

How to collect all React styles?

Hello!
There is a landing page written in react that was inherited from the previous developer and you need to get static html + css from it. (client doesn't need react). I don't really understand in react, is it possible somehow to combine all react styles?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
profesor08, 2020-08-17
@profesor08

npm run build
Well, jsx can be compiled into html, see the names of the methods in the docs.

M
McBernar, 2020-08-17
@McBernar

No, you can't get static from react. You need to either use a package from npm like react-static, or rewrite it a bit with nextjs.

R
Robur, 2020-08-17
@Robur

ctrl-s in the browser and then clean up the excess.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question