---
title: "Discussion on \"react hooks\" | Hashnode"
description: "Discussion on \"react hooks\". so in app.jsx file we use {} inside the return statment of the function the indicates the value of the variable decleared outside.eg:counter\nfunction App() {\n  let counter=15;\n\n  return (\n    <>\n     <h1>chai aur react</h1>\n     <h2>counter:{counter}..."
url: "https://hashnode.com/posts/react-hooks/6772a0dc925b342e94789f12"
---

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

Discussion

# [react hooks](https://smd.dev/react-hooks?utm_source=hashnode&utm_medium=feed)

so in app.jsx file we use {} inside the return statment of the function the indicates the value of the variable decleared outside.eg:counter function App() { let counter=15; return ( <> <h1>chai aur react</h1> <h2>counter:{counter}...

Dec 30, 2024 · 4 min read · smd.dev  
Updated May 28, 2025  
Read the article

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

## Written by

[SMD OWAIS](https://hashnode.com/@SMD99)

@SMD99

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

Life is enjoy

just learning the tech and speak it out

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
