Click in order · JavaScript and React course · Module 10: React Ecosystem and Future
Migration from forwardRef to React 19
Arrange the new way of defining a component with ref in React 19:
Items to click
- Button({
- children })
- { return <button ref={ref}>{children}</button>; }
- function
- ref,
You can check the correct answer by solving this task in the CodeWorlds game.