This is the sixth installment of a seven-part series designed to improve your React development skills. This application is goto guide for best practices in React.
Follow these instructions to get the application running:
- Install Node.js version 14.21.3:
nvm install v14.21.3
nvm use v14.21.3
- Install necessary packages:
npm install
- Start the application:
- To run the project :
npm start
- To run the project :
- public: contains root html file
- src
- Config: contains backend configurations
- UI: contains components that are customized basic UI elements
- Helper: contains additional helper functions e.g. javascript functions to change obj to arr
- Components: Sub-components used in pages
- Pages: contains main pages of the application
- Store: contains redux logic
- Components should have these two important properties:
- Modularity
- Reusability
- Prop Type Validation: refer this
- Proper Segregation for Components managing state
- Add handler as a suffix to event based functions
- Create Higher Order Components for repetetive Tasks: refer this
- Have a seperate folder
UI
for personalised UI components - Have seperate folder for all the configurations
- HTTP Requests: refer this
- Efficient way to convert array to objects and vice versa
- Establish routing if you have more than one pages to render
- Routing best practices: refer this
- One of the implementations for form creation is in the FormPage.js file
- Contains form validation
- Redux: for state management. Refer this
css modules
Materialize
prop-types
axios
redux
react-redux
redux-thunk
This project is part of a comprehensive React learning series: