Environment Configure for React

Ok, let's we start.

Above I have imported 3 scripts: react.js,react-dom.js & browser.js. Watch out for that each application based on react should import them. Now I will explain what they act in variable environment.

react.js

It should be imported 1st just as bootstrap which based on jquery, at the same time it's the core script.

react-dom.js

Remind that each operation connected with dom will die without it.

browse.js

It's also import. You know the browser can't realise JSX format. So the responsibility for it is to transfer JSX format into regular js usually we called as ES5. But, it takes a lot of time on loading . So the best way to solve the issue is to put brower.js into server round rather than client round when putting it on-line.

You can change the world with your heart,even a lot of changes sometimes unless you won't geiv up....
原文地址:https://www.cnblogs.com/xiongwei2017/p/7350456.html