A
A
Alexander2018-09-14 19:35:44
JavaScript
Alexander, 2018-09-14 19:35:44

Is it possible to write react js code in a separate file?

I want this:
5b9be33263f79481005599.png
It turns out like this:
5b9be3582c2e0061280419.png
If possible, how?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2018-09-14
@AleksandrB

Yes, just like you have now with a built-in script - you specify it to type="text/babel"your separate file when connecting.
In general, you should google: "webpack", "create-react-app".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question