Skip to content

Instantly share code, notes, and snippets.

@jaeyoung-kwon
Created November 20, 2025 05:27
Show Gist options
  • Select an option

  • Save jaeyoung-kwon/920ac617d0f79ebddc9eb2c01ed2d723 to your computer and use it in GitHub Desktop.

Select an option

Save jaeyoung-kwon/920ac617d0f79ebddc9eb2c01ed2d723 to your computer and use it in GitHub Desktop.
const B = ({ name }: Props) => {
if (name === '권씨') {
return <div>{expensiveCalculation(name)}</div>;
} else if (name === '오씨') {
return <div>{expensiveCalculation(name)}</div>;
} else {
return <div>{expensiveCalculation(name)}</div>;
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment