Using React in a multi-page app

后端 未结 6 766
滥情空心
滥情空心 2021-01-29 17:21

I have been playing around with React and so far I really like it. I am building an app with NodeJS and would like to use React for some of the interactive components across the

6条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-29 18:07

    I know it's been a while since this question was asked but hopefully this helps someone.

    As @Cocomico mentioned you could provide several entry points for the application in the webpack.config.js file. If you are looking for a simple Webpack setup (based on the idea of multiple entry points) that allows you to add React components to static pages you may consider using this: https://github.com/przemek-nowicki/multi-page-app-with-react

提交回复
热议问题