Skip to content

Instantly share code, notes, and snippets.

@frivolta
Created May 27, 2022 15:35
Show Gist options
  • Save frivolta/7a962b4acf9f6abe5724109321446914 to your computer and use it in GitHub Desktop.
Save frivolta/7a962b4acf9f6abe5724109321446914 to your computer and use it in GitHub Desktop.
Write better React, compose multiple functional HoCs, Higher-Order Components - Component
// A page component that just render text
const App = (props) => {
return (
<div className="App">
<h1>A component</h1>
</div>
);
};
export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment