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)