ReactJS
ReactJS
by lshettyl
HTML
> Different ways of defining an Element? (ES2015 class, React.createClass, stateless function — render only)
> What are the differences between state and props?
> Explain component lifecycle (componentWillMount, componentDidMount, componentWillReceiveProps, shouldComponentUpdate, componentWillUpdate, componentDidUpdate, componentWillUnmount); when is each of these functions called?
> How to optimize React component to render it less often? (using shouldComponentUpdate to determine if any relevant data changed)
> What are best practices? (for example why not to use getInitialState, try to find others and know how to explain them)
> What is flux? How it’s different from the more traditional MVC pattern?
> What is your preferred flux implementation? Why? (Hopefully your answer is Redux, as mostly everyone seems to be using it)
> How does Redux data flow work? (view, action creator, reducer, view — you should know and explain responsibilities of each; also how state is represented — state tree)
> controlled and uncontrolled components
> HOC
> render hijacking
> pass data up from child to parent
> refs
> synthetic events
> Error handling
> createPortal
> smart and dumb components
> class v/s function - dumb components
> webpack bundler analyzer
> ({ name }) (props destructuring)
Error Boundary
Pure Component
componentDidCatch() lifecycle hook
<React.Fragment>