Skip to content

What is function component in React? #20747

Discussion options

You must be logged in to vote

A React functional component is a simple JavaScript function that accepts props and returns a React element. After the introduction of React Hooks, writing functional components has become the ​standard way of writing React components in modern applications.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by 0xdev99
Comment options

You must be logged in to vote
0 replies

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Ask and answer questions about GitHub features and usage Programming Help Discussions around programming languages, open source and software development
4 participants