Skip to content

Instantly share code, notes, and snippets.

View awhitehouse104's full-sized avatar

Adam Whitehouse awhitehouse104

  • Lexington, Kentucky, United States
View GitHub Profile
@sebmarkbage
sebmarkbage / Enhance.js
Last active January 31, 2024 18:33
Higher-order Components
import { Component } from "React";
export var Enhance = ComposedComponent => class extends Component {
constructor() {
this.state = { data: null };
}
componentDidMount() {
this.setState({ data: 'Hello' });
}
render() {