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