---
title: "Discussion on \"React Hooks part 1\" | Hashnode"
description: "Discussion on \"React Hooks part 1\". useState and useEffect\nimport React from \"react\";\nimport { useState, useEffect } from \"react\";\n\nfunction WindowSizeList({ url }) {\n    const [windowWidth, setWindowWidth] = useState(window.innerWidth)\n    const [items, setItems] = useState([])\n\n    c..."
url: "https://hashnode.com/posts/react-hooks-part-1/641dd48934617914fa16be98"
---

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

Discussion

# [React Hooks part 1](https://blogs.sravanth.co.uk/react-hooks-part-1?utm_source=hashnode&utm_medium=feed)

useState and useEffect import React from "react"; import { useState, useEffect } from "react"; function WindowSizeList({ url }) { const \[windowWidth, setWindowWidth\] = useState(window.innerWidth) const \[items, setItems\] = useState(\[\]) c...

Mar 24, 2023 · 3 min read · blogs.sravanth.co.uk  
Read the article

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

## Written by

[Sravanth](https://hashnode.com/@sravanth-baratam)

@sravanth-baratam · Ilford, United Kingdom

  
[View profile](https://hashnode.com/@sravanth-baratam)

Full Stack Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
