JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
React Native interview questions
React Native interview questions
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 5
1. How do you write an inline style specifying the font-size:12px and color:red; in JSX
A. style={{font-size:12,color:'red'}}
B. style={{fontSize:'12px',color:'red'}}
C. style={fontSize:'12px',color:'red'}
D. style={{font-size:abpx,color:'red'}}
Show Correct Answer
Correct Answer is :
style={{fontSize:'12px',color:'red'}}
2. What's used to pass data to a component from outside?
A. setState
B. render with arguments
C. PropTypes
D. props
Show Correct Answer
Correct Answer is :
props
3. How do you access a function fetch() from a h1 element in JSX?
A.
{fetch()}
B.
${fetch()}
C.
{fetch}
D.
${fetch}
Show Correct Answer
Correct Answer is :
{fetch}
4. Which method in a React Component should you override to stop the component from updating?
A. willComponentUpdate
B. shouldComponentUpdate
C. componentDidUpdate
D. componentDidMount
Show Correct Answer
Correct Answer is :
shouldComponentUpdate
5. What happens when you call setState() inside render() method?
A. Repetitive output appears on the screen
B. Stack overflow error
C. Duplicate key error
D. Nothing happens. Life goes on!
Show Correct Answer
Correct Answer is :
Stack overflow error
Similar Interview Questions
Search for latest jobs
Find Jobs