About the React.js FAQ category
|
|
0
|
925
|
December 30, 2017
|
How can we access the individual elements or values of a prop which is an array or object?
|
|
5
|
12076
|
September 29, 2021
|
Can we access state properties using bracket notation?
|
|
2
|
9886
|
January 19, 2021
|
Is using a variable to set an attribute better practice than using object properties to set attributes?
|
|
7
|
11125
|
March 14, 2023
|
Why can I use a ternary operator inside a JSX expression but not an if statement?
|
|
12
|
15566
|
December 10, 2021
|
Why sometimes import has {} and sometimes doesn't?
|
|
4
|
12618
|
November 14, 2020
|
What is an HTML-like JSX element?
|
|
2
|
9301
|
May 2, 2020
|
What does JSON.stringify do?
|
|
6
|
22545
|
September 5, 2023
|
Can I call multiple event handlers in response to a single event?
|
|
19
|
35100
|
March 17, 2023
|
What happens if I don't use this when referencing a method from inside a class?
|
|
13
|
7960
|
October 22, 2022
|
Are there any other HTML attributes that are reserved keywords in JavaScript that I wont be able to use in JSX?
|
|
7
|
17838
|
September 25, 2022
|
When should I use logic inside of render vs logic inside of the class declaration?
|
|
3
|
10623
|
November 21, 2020
|
Is the ReactDOM render() method the same as the component render() method?
|
|
0
|
9964
|
January 3, 2019
|
Why don't we set the event listener attribute value to a function call?
|
|
13
|
13550
|
January 3, 2024
|
Should we always set defaultProps for every prop value?
|
|
0
|
10346
|
January 29, 2019
|
When should I use an if statement, a ternary operator, or the && operator?
|
|
0
|
11084
|
March 13, 2019
|
Can I inject other programming languages besides JavaScript into JSX?
|
|
12
|
15971
|
September 22, 2023
|
Why don't I need a ReactDOM.render() for each component?
|
|
7
|
18162
|
March 16, 2022
|
Can we return multiple elements in the render function?
|
|
10
|
19297
|
February 10, 2022
|
Can I use .forEach() to create a list of JSX elements?
|
|
6
|
65848
|
December 11, 2023
|
Why do I get errors when I pass the method with () to the attribute?
|
|
6
|
4475
|
May 7, 2022
|
What if the specified container already has contents when rendering to it?
|
|
5
|
7924
|
April 23, 2021
|
Why would we want to use variables to set a component's attributes?
|
|
0
|
6665
|
March 23, 2019
|
When should I assign a variable to a JavaScript expression that I want to use in a JSX expression?
|
|
0
|
9876
|
February 17, 2019
|
Is props short for "properties"?
|
|
3
|
10943
|
March 26, 2024
|
Do controlled and uncontrolled just mean stateless and stateful?
|
|
2
|
6415
|
September 21, 2023
|
Can we pass multiple event handlers as props and choose a specific one to attach to a child component?
|
|
2
|
12439
|
July 17, 2023
|
How should component classes be named?
|
|
8
|
6125
|
April 7, 2023
|
Can I use self-closing tag syntax for any HTML elements I use in JSX?
|
|
7
|
10320
|
February 17, 2023
|
What is the full lifecycle and methods of a component?
|
|
4
|
4633
|
March 2, 2022
|