You need to enable JavaScript to run this app.
Dev
Quiz
Topics
Statistics
Blogs
Quiz of
React
<p>React is mainly used for _______ (if needed, google it)</p>
1. building User Interface
2. building Database
3. building User Data Flow
4. building Shop
<p>How do you declare a class called “myClass” in react?</p>
1. class = “myClass”
2. Class = “myClass”
3. className = “myClass”
4. I don’t know
<p>Which method will you use in react to display components for each object in an array?</p>
1. filter
2. find
3. map
4. for
<p>How will create a state with a default value “JingaLala”?</p>
1. const { name, setName } = useState(“JingaLala”);
2. [name, setName] = UseState(“JingaLala”);
3. const ( name, setName ) = useState(“JingaLala”);
4. const [name, setName] = useState(“JingaLala”);
<p>Why can’t we declare a class with the “class” keyword in React?</p>
1. We should use class instead of className
2. class is a reserved keyword in javascript
3. We can use any name
<p>What is JSX?</p>
1. Javascript Html
2. Javascript XML
3. React XML
4. Javascript Http
<p>When creating a component in React, the first letter of that function name should be in ____</p>
1. Uppercase
2. Lowercase
3. I can use Both
<p>What is the correct way of creating a component in react?</p>
1. function nayika() { return <h3>Mousumi </h3>}
2. function Nokiya() [ return <h3> Mousumi <h3> ]
3. function Nayika() ( return <h3> Mousumi </h3> )
4. function Nayika() { return <h3> Mousumi </h3> }