/memo-good.jsx Secret
Last active
April 22, 2022 03:15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React ,{useState} from "react"; | |
const ChildrenComponent = React.memo(({userName}) => { | |
console.log('rendered') | |
return <div> {userName}</div> | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment