React - Udemy Flashcards
1
Q
React
A
- A JavaScript library for building user interfaces
- Makes building complex, interactive, reactive UI’s simpler
- Component based
- Uses declarative approach
- Always define the desired target state (and let React figure out the actual JS DOM instructions) instead of DOM manipulation and creation?
2
Q
What are components?
A
- individual, reusable building blocks used to build user interfaces
3
Q
Why components?
A
- reusable: DRY
- separate of concerns: instead of a large file with all the HTML and JS, we separate each component by functionality and purpose/task
4
Q
How is a component built?
A
- combine HTML, CSS, JS to build individual components
- then combine all these components together to build an application/UI