LearningFuze Bootcamp > react-function-components > Flashcards
What is a React component?
they are like JS functions; they accept arbitrary inputs (called “props”) and return React elements describing what should appear on screen
How do you define a function component in React?
write a JS function or use ES6 class to define component; components must start with capital letters
How do you mount a component to the DOM?
use ReactDOM.render(element,document.querySelector(“#root”))