---
title: "Discussion on \"Components in React\" | Hashnode"
description: "Discussion on \"Components in React\". Components are independent and reusable bits of code. they serve the same purpose as JavaScript functions, but work in isolation and return HTML.\nComponents come in two types class components and functional components.\n\nFunctional component: Function..."
url: "https://hashnode.com/posts/components-in-react/63e88a167824223cf752068f"
---

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

Discussion

# [Components in React](https://panwarneha2002.hashnode.dev/components-in-react?utm_source=hashnode&utm_medium=feed)

Components are independent and reusable bits of code. they serve the same purpose as JavaScript functions, but work in isolation and return HTML. Components come in two types class components and functional components. Functional component: Function...

Feb 12, 2023 · 1 min read · panwarneha2002.hashnode.dev  
Read the article

-   [#components-in-react](https://hashnode.com/tag/components-in-react)

## Written by

[Neha Singh](https://hashnode.com/@Nehapanwar)

@Nehapanwar · Ghaziabad, U.P.

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

Associate Software Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
