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