React:
- What can you say about the high order component(HOC)? - https://reactjs.org/docs/higher-order-components.html
- What is the difference between React.PureComponent and React.Component? - https://stackoverflow.com/questions/41340697/react-component-vs-react-purecomponent/43936258
- Why we shouldn't use inline arrow functions in component props? Using arrow functions or binding in react component is a bad practice that hurts performance, because the function is recreated on each render. Whenever a function is created, the previous function is garbage collected. Rerendering many elements might create jank in animations. Using an inline arrow function will cause PureComponents, and components that use shallowCompare in the shouldComponentUpdate method to rerender anyway. Since the arrow function prop is recreated each time, the shallow compare will identify it as a change to a prop, and the component will rerender.
- What methods of lifecycle do you know? Call them in the correct order. -