This repository was archived by the owner on Apr 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
React App
Carwyn Stephen edited this page Feb 19, 2018
·
2 revisions
The front end of the boilerplate of the application is located at resources/assets/js
can be divided into the following:
- A single page application utilising react-router-redux to handle page rendering. The routes for the application can be found in
app.jsx
. Pages can be found in/pages
and components can be found in/components
- The state of the application is managed with react-redux. Each component/page that needs to interact with the state will have a "container" component that maps different parts of the state and passes that down into the component. The container will also have a function for mapping functions into the component, so that the components can change the application's state. If you're not familiar with redux I highly recommend reading about it.
- To create the sign-up/log-in forms, I've used a package called redux-forms. This package makes it a lot easier to create forms whose state is managed through redux.