Medium
What will this component display?
const ComponentA=({value})=><div>{value + 1}</div>;
const MyComponent=()=>{
const ComponentB=<ComponentA value={1}/>
return(
<>
<ComponentA value={- 1}/>
<ComponentB/>
</>
);
};
Edit
Similar QuestionsMore questions about React