← BYTES
React.js·Starter·Ref: 4.1.7
What is a functional component?
Have a question about this video? Mention reference 4.1.7 when you contact us.
a.A component that can only render functions, never JSX
b.A component that has no props at all
c.A component generated automatically by a build tool
d.A plain JavaScript function that accepts props and returns JSX
A functional component is just a JavaScript function that takes a props object and returns JSX describing what to render. Since the introduction of Hooks, functional components can also hold state and side effects, which used to require a class.
Find this on YouTube & Instagram
Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:
#BYTES#BYTES417#Reactjs