nazaninsaedi / Coursework-Planner

Your coursework planner
1 stars 1 forks source link

[TECH ED] What is React #218

Open nazaninsaedi opened 1 month ago

nazaninsaedi commented 1 month ago

From Module-JS3 created by SallyMcGrath: CodeYourFuture/Module-JS3#14

Link to the coursework

https://www.youtube.com/watch?v=0KlRgFEEz0g

Why are we doing this?

  1. Watch the attached video. You can stop watching at 11:06 (the rest is unnecessary)

  2. Write your answers as a comment on your ticket on your board.

  3. In the comment, answer these questions in ONE sentence:

A. What does he say the "best description of React is"? B. What does he say "could be a component"? C. What does he say is the benefit of using JSX? D. What makes React fast?

Maximum time in hours (Tech has max 16 per week total)

1

How to get help

Share your blockers in your class channel. https://syllabus.codeyourfuture.io/guides/asking-questions

How to submit

Write your answers as a comment on your ticket on your board.

nazaninsaedi commented 1 month ago

A. What does he say the "best description of React is"? React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes. Declarative views make your code more predictable and easier to debug.The simply put react is a Java Script library for building user interfaces.

⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑

B. What does he say "could be a component"? Since component logic is written in JavaScript instead of templates, you can easily pass rich data through your app and keep state out of the DOM. We don't make assumptions about the rest of your technology stack, so you can develop new features in React without rewriting existing code.

⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑

C. What does he say is the benefit of using JSX? One of the benefits of using JSX is that you're able to interact with the DOM in the way that you know how right the way that's very familiar you've been writing HTML for all theses years and now well we can write HTML in a way that 100% connected to JS and it's really connected in a nice way that you can interact in them .

⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑⧑

D. What makes React fast? React uses a virtual representation of the DOM in memory. Instead of directly manipulating the browser's DOM, React makes changes to this virtual DOM first. Then, it calculates the most efficient way to update the actual DOM and applies those changes in batches. This minimises the number of manipulations needed and reduces the time spent on DOM operations.