Question from the React ⚛️ test

Archived

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: Archived(New question!)Question passed 1506 times
1
Community EvaluationsNo one has reviewed this question yet, be the first!