UpTest > Web Development > ReactJS Test

Test: ReactJS Test

Question 12: Prev Next Hide answers

Which is true for ReactJS components defined as pure JS functions?

Pure function component has everything what ES6 class has, but you can't use inner state of the component, only way to mutate data is to fire new action and wait for props update
0 votes
It's possible to set defaultProps for pure function component 
0 votes
Pure function component do not have lifecycle methods or propTypes 
1 votes
Pure function component have only render method defined
0 votes
Please login to submit your answer.