meteor / simple-todos-react

A repository that follows the React tutorial step-by-step

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

App only renders background and doesn't render the body - TypeErro: useRef is not a function

Mushorwell opened this issue · comments

When I load this react todo list, only the background is rendered. In the console there's an uncaught error:

Uncaught TypeError: useRef is not a function
at useTrackerClient (useTracker.js:108)
at useTracker.js:206
at withTracker.jsx:10
at updateForwardRef (modules.js?hash=d0ac376d4e8b3500476255fd10ca96e2ac007274:17836)
at beginWork (modules.js?hash=d0ac376d4e8b3500476255fd10ca96e2ac007274:18912)
at performUnitOfWork (modules.js?hash=d0ac376d4e8b3500476255fd10ca96e2ac007274:21710)
at workLoop (modules.js?hash=d0ac376d4e8b3500476255fd10ca96e2ac007274:21750)
at HTMLUnknownElement.callCallback (modules.js?hash=d0ac376d4e8b3500476255fd10ca96e2ac007274:3709)
at Object.invokeGuardedCallbackDev (modules.js?hash=d0ac376d4e8b3500476255fd10ca96e2ac007274:3759)
at invokeGuardedCallback (modules.js?hash=d0ac376d4e8b3500476255fd10ca96e2ac007274:3816)

Also the following message after the uncaught error:

The above error occurred in the component:
in ForwardRef
in ForwardRef

Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://fb.me/react-error-boundaries to learn more about error boundaries.
logCapturedError @ modules.js?hash=d0ac376d4e8b3500476255fd10ca96e2ac007274:19573

Hey @Mushorwell , thank you for your feedback.

I have incorporated your feedback here in this new repo, the new home of react tutorial.

https://github.com/meteor/react-tutorial/ (https://react-tutorial.meteor.com)

It's PR friendly so if you want to make more changes, go ahead there!