DEV Community

Lukas Gaucas
Lukas Gaucas

Posted on

Reactify your checkbox !

In this article I will provide you with three examples , where as each will be a checkbox related :

  • Example 1 – simple checkbox (useState)
  • Example 2 – simple checkbox (useReducer)
  • Example 3 – advanced checkbox (useState, useEffect, useRef) + localStorage

Example 1 & 2

NOTE : just switch the number of N between 1 & 2 for checkboxN (also explained index.js) whilst importing import App from "./checkboxN";

Example 3


If any typo(s) found or suggestions could made , please leave a comment below !

Top comments (0)