UpTest > Web Development > ReactJS Test

Test: ReactJS Test

Question 33: Prev Next Hide answers

How can you create ReactJs component?

With ES6 Classes if using Babel, or with JS functions
0 votes
If initial state is needed only with ES6 classes extending React.Component, otherwise - with pure JS functions or React.createClass function
2 votes
JS functions, ES6 classes extending React.Component or React.createClass function, but then you can't defined initial state
0 votes
JS functions, ES6 classes extending React.Component or React.createClass function
0 votes
JS functions, ES6 classes extending React.createClass or React.Component function
0 votes
With pure JS functions
0 votes
Please login to submit your answer.