FAQ   React.js FAQ

Topic Replies Activity
About the React.js FAQ category 1 December 30, 2017
What is an HTML-like JSX element? 1 January 17, 2019
Can we access state properties using bracket notation? 1 January 17, 2019
Why sometimes import has {} and sometimes doesn't? 1 December 11, 2018
Is using a variable to set an attribute better practice than using object properties to set attributes? 5 July 18, 2019
Is the ReactDOM render() method the same as the component render() method? 1 January 3, 2019
Why don't we set the event listener attribute value to a function call? 3 March 3, 2020
How can we access the individual elements or values of a prop which is an array or object? 1 February 7, 2019
When should I use logic inside of render vs logic inside of the class declaration? 1 March 29, 2019
Why would I use React.createElement() instead of JSX? 5 February 3, 2020
Is there a way to work with the individual children of a component? 3 January 14, 2020
Why don't I need a ReactDOM.render() for each component? 4 December 30, 2019
Can I call multiple event handlers in response to a single event? 5 August 8, 2019
What if the specified container already has contents when rendering to it? 1 January 8, 2019
Can we only create one component instance at a time? 2 September 22, 2019
Can we return multiple elements in the render function? 5 February 19, 2020
What happens if I don't use this when referencing a method from inside a class? 1 March 29, 2019
Can I change a component's attribute values using a conditional statement in the render function? 1 March 23, 2019
Can we pass the entire state object to the child component? 2 June 6, 2019
Why would we want to use variables to set a component's attributes? 1 March 23, 2019
Are there any other HTML attributes that are reserved keywords in JavaScript that I wont be able to use in JSX? 1 February 17, 2019
Should we always set defaultProps for every prop value? 1 January 29, 2019
Can we perform expressions within the curly braces? 1 January 29, 2019
When should I assign a variable to a JavaScript expression that I want to use in a JSX expression? 1 February 17, 2019
How can we implement componentDidUpdate to check for any changes in props or state? 2 March 27, 2019
Can we pass multiple event handlers as props and choose a specific one to attach to a child component? 1 February 13, 2019
Is a stateless functional component the same as a stateless component? 1 February 13, 2019
Can we unmount a component manually? 1 January 17, 2019
How does this update the text on every change? 2 April 30, 2019
What values can you store in state? 1 January 24, 2019