Week 10 React Part 1 Flashcards
Key Terms in Videos
Everything in React is a
component
React does not update the
DOM
React updates the
Virtual DOM
React was built and maintained by
Components are
reusable pieces of code
bundle.js is created by
webpack
every component is a
class
every component a __________ method
render
to render React you need the __________ package
react-dom
to mount your React App to the DOM you use the _______ method
render()
The best practice is to create components in
separate file
to make a component visible to other code in your app you need to ___________ the component
export
mixing javascript and HTML is done through
JSX
class is __________ in JSX
className
wrap you return statements in
()
return is not a
function it is a keyword
you can only return one
element
to render a dummy tag use
React.Fragment
Comments in JSX are made by
{/* */}
comments in the render have to be between
the enclosing tags
class names should begin with
capitals
props are similar to an HTML
attribute
__________ are the way we get data into our components
props
props passed into a component that is not a string must be enclosed in
{ }
to use a variable in JSX you use
{ }
components are just an
object