Trying new hook useTransition on list of items.
All the logic you can find in Form component.
- Fetching list of posts from json-placeholder
- Filtering by text using form input and onChange handler with useTransition hook.
startTransition and useTransition let you mark some state updates as not urgent. Other state updates are considered urgent by default. React will allow urgent state updates (for example, updating a text input) to interrupt non-urgent state updates (for example, rendering a list of search results).
The project is posted on Netlify : click here.
React useTransition hook docs : click here