React Flashcards

(5 cards)

1
Q

Functions that start with use are

A

Hooks!

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

You can write your own hooks

A

By combining the existing ones

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

Custom hooks

A

Allow for sharing the same internal logic between components, though their displays may be different.

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

Refs

A

Are references to Dom nodes

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

Forward refs

A

Allow a child to expose a reference to a Dom node back to a parent. That can then be used to pass to other children so they can reference the Dom node as well.

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