![]() |
React Hooks were introduced in React version 16.8. They were a significant addition to the React library and provided a new way to work with stateful logic and side effects in functional components. Before the introduction of Hooks, stateful logic was primarily managed in class components using the lifecycle methods. React Hooks, including React includes a stable implementation of React Hooks for:
Note that to enable Hooks, all React packages need to be 16.8.0 or higher. Hooks won’t work if you forget to update, for example: React DOM. |
Reffered: https://www.geeksforgeeks.org
Web Technologies |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 14 |