Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 916 Bytes

README.md

File metadata and controls

15 lines (9 loc) · 916 Bytes

filter-list-use-transition

Trying new hook useTransition on list of items.

All the logic you can find in Form component.

  1. Fetching list of posts from json-placeholder
  2. 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

image