Learning Fuze - rc0821 > react-function-components > Flashcards
What is a React component?
Components are like JS functions. They accept inputs (called “props”) and return React elements describing what should appear on the screen.
How do you define a function component in React?
Just like a function in JS… BUT, function name should be capitalized.
How do you mount a component to the DOM?
reactDOM.render() method