filmov
tv
React 19 is now stable! - What's new in React 19 || Part 6:useOptimistic
Показать описание
Welcome to the New Series: React 19 features and updates
React 19 has introduced new Features like useOptimistic and hooks like useActionState, useFormStatus, Refs as props, use() API and much more.
We will break part by part entire React 19 feature and make it interesting. We are discussing useOptimistic Feature
useOptimistic is a React Hook that lets you show a different state while an async action is underway. It accepts some state as an argument and returns a copy of that state that can be different during the duration of an async action such as a network request. You provide a function that takes the current state and the input to the action, and returns the optimistic state to be used while the action is pending.
---------------------------------------------- Github link -------------------------------------------------
------------------------------------------ React v19 documentation ------------------------------
---------------------------------------------------------------Redux Toolkit-----------------------------------
---------------------------------------------------------------Javascript 100 Questions ---------------------------------------------------
----------------------------------------------------------------JavaScript Tutorial ------------------------------------------------------------
-------------------------------------------------------------JavaScript Playlist -------------------------------------------------------------------
-------------------------------------------------------------React Mini Projects Playlist -------------------------------------------------------------------
------------------------------------------------------------------
React 19 has introduced new Features like useOptimistic and hooks like useActionState, useFormStatus, Refs as props, use() API and much more.
We will break part by part entire React 19 feature and make it interesting. We are discussing useOptimistic Feature
useOptimistic is a React Hook that lets you show a different state while an async action is underway. It accepts some state as an argument and returns a copy of that state that can be different during the duration of an async action such as a network request. You provide a function that takes the current state and the input to the action, and returns the optimistic state to be used while the action is pending.
---------------------------------------------- Github link -------------------------------------------------
------------------------------------------ React v19 documentation ------------------------------
---------------------------------------------------------------Redux Toolkit-----------------------------------
---------------------------------------------------------------Javascript 100 Questions ---------------------------------------------------
----------------------------------------------------------------JavaScript Tutorial ------------------------------------------------------------
-------------------------------------------------------------JavaScript Playlist -------------------------------------------------------------------
-------------------------------------------------------------React Mini Projects Playlist -------------------------------------------------------------------
------------------------------------------------------------------