React memo keep state code example
Example: how to add react.memo in export list
export const MemoMainPostTopic = React.memo(MainPostTopic);
//or
const MainPostTopic = memo(() => {
...
})
export { MainPostTopic };
export const MemoMainPostTopic = React.memo(MainPostTopic);
//or
const MainPostTopic = memo(() => {
...
})
export { MainPostTopic };