I know that useTransition hook was created using a function called flushSync in react 18 version.
Can't I use this as a custom hook in react 17 version?
Due to my lack of knowledge, I haven't tried it.
I know that useTransition hook was created using a function called flushSync in react 18 version.
Can't I use this as a custom hook in react 17 version?
Due to my lack of knowledge, I haven't tried it.