8000 GitHub - thawkin3/react-component-state-demo: Good and bad examples of using state in React with both functional and class components
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

thawkin3/react-component-state-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Component State Demo

This project contains demos for how to correctly and incorrectly use state with React components. The examples are implemented in both class components and function components.

Demo

The demo can be found here: http://tylerhawkins.info/react-component-state-demo/build/

Article

A write-up of this content with more explanations can be found here: https://dev.to/thawkin3/3-react-mistakes-junior-developers-make-with-component-state-1bhd

Local Development

If you'd like to run the demo locally:

  1. Clone the repo
  2. yarn install
  3. yarn start

About

Good and bad examples of using state in React with both functional and class components

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0