---
title: "Discussion on \"What are the rules that must be followed while\nusing React Hooks?\" | Hashnode"
description: "Discussion on \"What are the rules that must be followed while\nusing React Hooks?\". Don’t call Hooks inside loops, conditions, or nested functions. Don’t call Hooks from regular JavaScript functions."
url: "https://hashnode.com/posts/what-are-the-rules-that-must-be-followed-while-using-react-hooks/637cf092de1a8abc80caf989"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [What are the rules that must be followed while using React Hooks?](https://rajamuhammadasher.com/what-are-the-rules-that-must-be-followed-while-using-react-hooks?utm_source=hashnode&utm_medium=feed)

Don’t call Hooks inside loops, conditions, or nested functions. Don’t call Hooks from regular JavaScript functions.

Aug 31, 2022 · 1 min read · rajamuhammadasher.com  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)

## Written by

[Raja Muhammad Asher](https://hashnode.com/@rajamuhammadasher)

@rajamuhammadasher · USA

  
[View profile](https://hashnode.com/@rajamuhammadasher)

Full Stack Developer

Full Stack Developer with a passion for building web applications. PHP, Node.js, Laravel, MySQL, MongoDB. Love collaborating &amp; making a difference

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
