@@ -7,11 +7,10 @@ export class Reffuse<R, ER> {
|
||||
constructor(
|
||||
private readonly runtime: ManagedRuntime.ManagedRuntime<R, ER>
|
||||
) {
|
||||
const Context = React.createContext(runtime)
|
||||
this.Context = Context
|
||||
this.Context = React.createContext(runtime)
|
||||
|
||||
this.Provider = (props: { readonly children?: React.ReactNode }) => (
|
||||
<Context
|
||||
<this.Context
|
||||
{...props}
|
||||
value={runtime}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user