REACT Flashcards
1
Q
Components
A
Small reusable individual pieces used to build interfaces. They use a syntax extension called JSX to represent markup.
2
Q
Props
A
Used by components to communicate with each other, they are information passed in JSX tags.
3
Q
Testing
A
- Unit testing = tests that cover small parts of the code like individual classes and functions.
- Snapshot testing = makes sure the UI does not change unexpectedly. It renders a UI component, takes a snapshot and compares it to the equivalent file stored alongside it.