Question from the React ⚛️ test

Fix the following React code:

Medium

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: Vincent CotroStatus: Published(Update)Question passed 999 times
Edit
2
Community EvaluationsNo one has reviewed this question yet, be the first!