Test: ReactJS Test
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
It's possible to set defaultProps for pure function component
Pure function component do not have lifecycle methods or propTypes
Pure function component have only render method defined
0 votesPlease login to submit your answer.