Custom bailout condition
memo 뒤에 커스텀으로 compare 알고리즘을 명시할 수 있다.
ThearePropsEqual()
function acts very similar to theshouldComponentUpdate()
lifecycle method in class components, but in the reverse manner. The following code snippet uses a custom bailout condition: