Do I need to rewrite all my class components with hooks?
No. But you can try Hooks in a few components(or new components) without rewriting any existing code. Because there are no plans to remove classes in ReactJS.
April 04, 2022
How to programmatically trigger click event in React?
November 06, 2022ReactJS