Hard
What is(are) the problem(s) in this code?
function SomeComponent(props) {
if (props.condition) {
props.condition = !props.condition;
} else{
return(
<p>Hello,</p>
<p>I am a React.js developer</p>
)
}
}
Author: Victor SabatierStatus: PublishedQuestion passed 1423 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!
6
Write a React function that fetches comments and passes them to a component.7
Improve this React component so that it displays "Green" by default.3
Fix the following React component: Scroller2
Write a React component as a function6
Optimize a React component by implementing shouldComponentUpdate5
How to submit a form in React2
Write the missing code to render the children of the UserProfile component.