REACT Flashcards

1
Q

Components

A

Small reusable individual pieces used to build interfaces. They use a syntax extension called JSX to represent markup.

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

Props

A

Used by components to communicate with each other, they are information passed in JSX tags.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly