FunClassThe FunClass takes the element, and the name of the class you want to add
Method | Description | parameters |
---|---|---|
add() | To add a class name to your element | `add(selector , newClass)` |
remove() | To remove a class name from your element | `remove(selector , newClass)` |
#
Add and Remove Class
We add a border class to the input and then we will remove the class again.
React / Next.js Show Source Code