Skip to content

Sample React app - useState, useEffect, useReducer, class components to functional components

Notifications You must be signed in to change notification settings

wangchen-ca/my-react-fetch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My sample React application - my-react-fetch

Review codes with comments to understand React concepts:

  • Technical points: useEffect ( fetch data from a remote url ).
  • There are 3 style changes for the implementation. They can be found over the commit history:
    • useState + useEffect,
    • useState -> useReducer.
    • class components -> functional components.

The application is created by create-react-app

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.

About

Sample React app - useState, useEffect, useReducer, class components to functional components

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published