UpTest > Web Development > ReactJS Test

Test: ReactJS Test

Question 30: Prev Next Hide answers

What is incorrect with the following component?

class MyComponent extends React.Component {

render() { return (

This is a component

); }

}

react render 
1 votes
react component
0 votes
class should be replaced by className
0 votes
render should not be a function
0 votes
Please login to submit your answer.