import * as React from 'react'; import { ReactWidget, UseSignal } from '@jupyterlab/apputils'; import { ISignal, Signal } from '@lumino/signaling'; import { Widget } from '@lumino/widgets'; function MyComponent() { return
My Widget
; } function UseSignalComponent(props: { signal: ISignal }) { return {() => }; } class MyWidget extends ReactWidget { render() { return ; } private _signal = new Signal(this); } const myWidget: Widget = new MyWidget(); Widget.attach(myWidget, document.body);