DEV Community

Cover image for What the Error? ReactJS: Hooks can only be called inside the body of a function component
Owen Conti πŸ‡¨πŸ‡¦
Owen Conti πŸ‡¨πŸ‡¦

Posted on

4 4

What the Error? ReactJS: Hooks can only be called inside the body of a function component

This is the second video in my new series, What the Error? where I debug and resolve common error messages in web frameworks.

This video covers ReactJS's "Hooks can only be called inside the body of a function component".

Top comments (1)

Collapse
 
bip3r profile image
Or Orsatti β€’

Nice one. I already know hooks but I might still take a look on it!

Image of Datadog

Create and maintain end-to-end frontend tests

Learn best practices on creating frontend tests, testing on-premise apps, integrating tests into your CI/CD pipeline, and using Datadog’s testing tunnel.

Download The Guide

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay