FAQ   React.js FAQ

Topic Replies Activity
About the React.js FAQ category 1 December 30, 2017
Why sometimes import has {} and sometimes doesn't? 1 December 11, 2018
Is the ReactDOM render() method the same as the component render() method? 1 January 3, 2019
When should I use logic inside of render vs logic inside of the class declaration? 1 March 29, 2019
What is an HTML-like JSX element? 1 January 17, 2019
Why don't we set the event listener attribute value to a function call? 1 March 9, 2019
Why would I use React.createElement() instead of JSX? 3 December 27, 2019
How can we access the individual elements or values of a prop which is an array or object? 1 February 7, 2019
Is using a variable to set an attribute better practice than using object properties to set attributes? 5 July 18, 2019
Can we access state properties using bracket notation? 1 January 17, 2019
Can I call multiple event handlers in response to a single event? 5 August 8, 2019
Is there a way to work with the individual children of a component? 3 January 14, 2020
What happens if I don't use this when referencing a method from inside a class? 1 March 29, 2019
Can I use the index of an element (passed to a method/looped over) as the key attribute's value? 5 November 20, 2019
Am I always going to use curly braces to write JavaScript inside of JSX? 3 November 18, 2019
Can I inject other programming languages besides JavaScript into JSX? 1 March 9, 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 does this update the text on every change? 2 April 30, 2019
Can I use .forEach() to create a list of JSX elements? 2 December 6, 2019
Can we only create one component instance at a time? 2 September 22, 2019
Can we return multiple elements in the render function? 4 August 14, 2019
What if the specified container already has contents when rendering to it? 1 January 8, 2019
Can we pass multiple event handlers as props and choose a specific one to attach to a child component? 1 February 13, 2019
What else does the React.Component class provide? 1 January 3, 2019
Can we pass the entire state object to the child component? 2 June 6, 2019
Can we set a placeholder value for the input field? 1 February 28, 2019
Is onChange a special attribute? 1 October 28, 2018
FAQ: Components and Advanced JSX - Put Logic in a Render Function 2 September 2, 2019
What are the advantages of having multiple components with one job each? 1 October 30, 2018
Why do I get errors when I pass the method with () to the attribute? 4 November 18, 2019