React All Flashcards
What is react?
front end framework for Javascript
Front end framework
standardized way of creating and deploying parts of a web applications
3 features of React
- declarative, component-based, learn once, write everywhere
Declarative programming
describes what to accomplish and leaves how to do the action up to the program
imperative programming
scribe each step/action a program should make and how the program should do the actions step by step
what are components
building clocks of our web page that handles their own data and UI logic
why is react a learn once and write everywhere program
works in different environments and easy to learn other react languages
how do you launch react project
npm start
what is babel
transpiler that converts modern JS and custom code like JSX into compatible JS
what is webpack
bundler that takes all our work along with any required dependecy code and packages it all together in a transferable bundle
ESLint
linting and code analysis functionality to help improve code and reinforce best practices
JS packages
a file or set of files full of existing, reusable code
what is npm
package manager for Node that helps organize JS packages in relation to our work
can you use packages to build other packages
yes
what is package.json
file that tells you and npm what packages are required for a specific JS application
what command reads the packages.json dependency’s
npm install
where does npm install download the packages from
npmjs.com
node_modules
local environment creates this folder to hold downloaded packages
npm install package name
how to add a specific package
npm init
creates package.json and includes specific content to include in the file
npm test or learn test
runs the test script found in package.json
render
method that comes from react-dom package
what 2 arguments does render take
react component to render
dom element where we want the component to be rendered
App.js
top level that cantains app compoents