Skip to content

Instantly share code, notes, and snippets.

@Mohammad-Faisal
Last active April 22, 2022 03:15
Show Gist options
  • Save Mohammad-Faisal/a5e4afed5a0e2884f3f16f9f3f2d7d98 to your computer and use it in GitHub Desktop.
Save Mohammad-Faisal/a5e4afed5a0e2884f3f16f9f3f2d7d98 to your computer and use it in GitHub Desktop.
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