D
D
Denis2017-08-02 17:51:15
React
Denis, 2017-08-02 17:51:15

How to include components in native React?

For example, there is an App.js module that actually builds the main application. But the header (Header.js) and footer (Footer.js) of the application are in separate modules. And of course they need to be included in App.js. If you use the ES2015 syntax in conjunction with JSX, then there are no problems, but what if you use native React?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly, 2017-08-02
@vshvydky

Start with the fact that components should not use jsx and continue through the documentation. Something like react create blablabla class, export modle, require)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question