简体   繁体   中英

How to use HTML files in a ReactJS web app

I am currently learning to build web apps with React JS. How would you typically handle the HTML / JS splitting? Would you normally just have a "app" container in the HTML of every page and render a "app" component into it in the javascripts and manage everything from there? Or would you split up the HTML more, eg with toolbar, side menu and main view containers?

Better it is to decompose your react app into components . App container, toolbar, side-menu, header, footer, list view and so on, If you want to load a different page use react router

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM