Crash Course Flashcards
What is React?
It is a JavaScript library that is used for building user interfaces
TRUE OR FALSE: React runs in the browser
TRUE
Is React referred to a front-end or back-end framework
Front-end
Why would you want to use React?
-Structure the “view” layer of your application. If you tried to build a large dynamic interface with vanilla JavaScript, it can get really messy.
-Reusable components with their own state
-JSX - Dynamic markup
-Interactive UIs with Virtual DOM
-Performance & testing
-Very popular in the industry
What is “state”?
It is an object that determines how a component renders and behaves
What is a React hook?
Functions that let us hook into the React state and lifecycle features from function components
What is JSX?
It’s a syntax extension to JavaScript. It’s just a shortcut for the React.createElement() API. It helps us generate the stuff that eventually spits out HTML. It’s like EJS