DEV Community

LG
LG

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)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More