import { withDeno } from "https://deno.land/x/aleph@v0.3.0-alpha.17/framework/react/hoc.ts";
withDeno
allows you to use useDeno
hook with class component.
class MyComponent extends React.Component {
render() {
return <p>{this.props.version}</p>
}
}
export default withDeno(() => ({ version: Deno.version.deno }))(MyComponent)