React architecture for a huge business application

前端 未结 8 1740
礼貌的吻别
礼貌的吻别 2021-01-30 04:03

So we\'ve recently picked up React in our company as the front-end technology to build our huge business web application. By saying recently, I mean we don\'t have any previous

8条回答
  •  伪装坚强ぢ
    2021-01-30 04:44

    There is absolutely no question that React/Redux can (and is widely) used to develop the kind of applications that you describe. Nothing in your description makes what you are building so unique that it excludes React as a platform for building it. We are actively working with a large enterprise customer who is building their entire front end - with 100 + SPA (Single page applications) in React. This is a team of over 100 developers over a 2-3 year project.

    The way we structured this has been crucial -

    First, you want to choose a UI component library. A few examples below :

    • MaterialUI - https://github.com/callemall/material-ui
    • React Strap - https://github.com/reactstrap/reactstrap
    • React Bootstrap -https://github.com/react-bootstrap/react-bootstrap
    • Khan Academy React Components https://github.com/Khan/react-components
    • https://github.com/elementalui/elemental

    We basically took one of these and built a component library off of them, because our components are very custom styled.

    Second, we created a modular architecture, where each module (SPA) is an npm package with a main container component and redux store.

    Finally, we have a central server package, where each of the modules is registered. The server package is responsible for authentication, authorization, logging, routing, etc.

    The essence of this answer is not to advise on how to structure a large React application, but to let you know that React can be (and is being) used to develop applications similar to what you are describing.

提交回复
热议问题