React JS (JS Institute) Quiz Questions and Answers
Explanation :
The Object.assign() method is used to copy the properties and values of one object to another. Objects are assigned and copied by reference.
Explanation :
No, browsers can't understand JSX code. You need a transpiler to convert your JSX to regular Javascript that browsers can understand.
Answer :
- style={{fontSize:'12px',color:'red'}}
Explanation :
Inline styles in React should be specified in JSON format, with the keys following camelCase notation.
Answer :
- Displays the list of languages in the array
Explanation :
map is just another method call on a collection. Works perfectly fine
Explanation :
state and props are used to handle data in React.
Answer :
- Using the Array.map() method