---
title: "Comment by shadowtime2000 on \"Why Are React Hooks Required?\" | Hashnode"
description: "function ExampleComponent ( { props } ) { // ... render(){ return ( // ... ); } } This is invalid JS code and won&#39;t work"
url: "https://hashnode.com/posts/why-are-react-hooks-required/6002af7f848f4c3b9a0eef56/comment/600374907b30c23b714a95d8"
---

[Discussion](https://hashnode.com/posts/why-are-react-hooks-required/6002af7f848f4c3b9a0eef56)

Comment [Why Are React Hooks Required?](https://hashnode.com/posts/why-are-react-hooks-required/6002af7f848f4c3b9a0eef56)

[shadowtime2000](https://hashnode.com/@shadowtime2000)

[Jan 16, 2021](https://hashnode.com/posts/why-are-react-hooks-required/6002af7f848f4c3b9a0eef56/comment/600374907b30c23b714a95d8)

```
function ExampleComponent({ props }) {
  // ...
  render(){
      return(
          // ...
      );
  }
}
```

This is invalid JS code and won't work

[Hetav Desai](https://hashnode.com/@desaihetav)

[Jan 17, 2021](https://hashnode.com/posts/why-are-react-hooks-required/6002af7f848f4c3b9a0eef56/comment/600374907b30c23b714a95d8#reply-6003bfc27b30c23b714a977d)

My bad. Thanks for pointing out!
