React Flashcards

learn react for JS

1
Q

What is a component?

A

A piece of reusable code that represents a part of a user interface.

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

What do components do?

A

Components are used to render, manage, and update the UI elements in your application.

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

What is a JSX element?

A

A JSX element is a combination of JavaScript code and HTML tags that describes what you’d like to display.

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

what is a fragment?

A

A feature that allows developers to group multiple elements together without adding extra nodes to the DOM.

(<> and </>)

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

What do fragments do?

A

Fragments group a list of children without adding extra parent elements. This helps keep the DOM structure cleaner and more organized.

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

What is a library?

A
  • A collection of reusable code

*Reduces the need to write repetitive/complex things from scratch

*You control how/when it’s used. No/few boundaries.

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

What is a framework?

A

*Predetermined architecture - you follow a specified pattern of development

*You work within the boundaries set by the framework

*“Right” and “wrong” ways to use it.

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

When should you not to use a library or framework?

A

When you are doing a very small project like a static web page or when you have network load concerns. etc.

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