Put in order · JavaScript and React course · Module 9: Modern React Hooks
useTransition Syntax
Arrange the correct syntax for using useTransition:
Items to put in order
- = useTransition();
- startTransition(() =>
- const [isPending, startTransition]
- { setData(newData); });
You can check the correct answer by solving this task in the CodeWorlds game.