How to use react in jsp page?
天蓬老师
天蓬老师 2017-06-14 10:53:46
0
2
1359

React normally, react-dom. Use react to insert components into a jsp page and report syntax errors. Can react be used in jsp? If it can be used, how should it be used? ?

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(2)
Ty80

First of all, you have to determine whether the react in your jsp page is written in es6 or es5. If you just want to use react in the jsp page, introduce the two packages react and react-dom and follow Ruan Yifeng's tutorial. Write, use es5 syntax to write

黄舟

Essentially it is possible, because they are all js code. The reason for saving may be that the latest version of react uses es6 syntax, but your browser does not support it. You can always use Babel to convert your react code to es5

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!