Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
React component nested functions
const FunctionComponent = () => {
// Função aninhada
const myNestedFunction = () => {};
return <h1>Estou sendo renderizado</h1>;
};
class ClassComponent extends React.Component {
render() {
// Função aninhada
const myNestedFunction = () => {};
return <h1>Estou sendo renderizado</h1>;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment