Skip to content

Latest commit

 

History

History
47 lines (30 loc) · 1.17 KB

README.md

File metadata and controls

47 lines (30 loc) · 1.17 KB

React Router App with(out) useState Hook

This is a simple React application that demonstrates the benefits of React Router for navigating between different components, in addition to using actions and loaders to do away with the need for useState Hook.

Features

  • React Router for routing
  • Navigation between different components/pages
  • Utilise React Form
  • Utilization of actions and loaders in React Form remove any state management
  • Modal implementation
  • Fetching existing posts from an Express 'dummy' backend
  • Adding new posts to an Express 'dummy' backend

Installation

To install the dependencies, run the following command:

npm install

Running the App

This app requires an Express server to be running before starting the development server.

To start the Express server, run the following command:

npm start

Then, to start the React development server, run the following command:

npm run dev

The app will start running at http://localhost:3000.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT