react-function-components Flashcards

1
Q

What is a React component?

A

Components are reusable parts of the UI. It can be as small as buttons and big as the navbar or the entire page.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you define a function component in React?

A

Writing a JavaScript function with capital letters in the name that returns a JSX element.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly