Chapter 1 Flashcards

1
Q

What is react?

A

A javascript library for building user interfaces.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are components?

A

React uses components to render UI. Eg. header, footer, sidebar, headline, article content.

React components are custom html that can be reused.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How to build a react project? What all libraries and preprocessors are required?

A

Libraries-
React and react-dom
Javascript preprocessor - Babel

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How to create a react component?

A

Create a function with first letter capital.
Return JSX from it. (Similar to html) - a div maybe

In last line write -
ReactDOM.render(, document.querySelector(“#p1”));

In Html- write

<div> </div>

Or you can render entire page by giving page id as app. And render app, where app is a jsx variable with all elements inside it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How are attributes passed to react component?

A

We can pass props to the component as argument of the function.

Props.name will hold name
Props.email will hold email.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Why React?

A

Ui state becomes difficult to handle with vannila Js

Focus on business logic not on preventing your app from exploding

Huge ecosystem. Active community, high performance.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are alternatives to react?

A

Angular,
Vue js

Backbone, amber
Jquery - has technical details a user has to keep in mind to use jquery. However it must be avoided when used with react.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are two types of application?

A

Single page application.
Multipage application.

One HTML page, content is rendered on it. You get one html page from the server and then after everything else is managed by the javascript with react. Entire page has components managed by js.

Multipage application - every url has different pages. React can be used here. But not everything is managed by react here.

In spa, react dom is called once, allows to use react routers

In mpa, react dom is called multiple times. (Widget dont know of each others existence.)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Outline of course

A
  1. Getting started
  2. The basics - react components and their communication
  3. Debugging
  4. Styling components
  5. Components deep dive
  6. Http requests - spa, ajax, asynchronous http
    Routing
  7. Forms and Validation
  8. Redux
  9. Authentication
  10. Testing
  11. Deployment
  12. Bonus - animation, next steps, next.js
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Get most out of this course

A

Code along
Check source code at the end of each unit
Ask in Q&A, try answering
Practice, practice, practice

How well did you know this?
1
Not at all
2
3
4
5
Perfectly