• An ExternalBrain projects thought process onto a knowledge graph.

    The module is composed of and depends on 2 modules:

    1. Editor
    2. messier-61-graph!Graph

    The two modules shares a single state of

    const [graphData, setGraphData] = useState<GraphData>({
    nodes: [],
    links: [],
    });

    which is an instance of messier-61-graph!GraphData. The state is used in a way almost identical to the standard React approach. The difference, however, is that the change of state inside Editor triggers a Graph state change (i.e. redrawing graph), but NOT vice versa. This is based on the assumption that the external input to our brain affects our through process; but our internal thought process never directly mutates the outside world

    The state variable graphData's state value is passed into messier-61-graph!Graph Graph module and its set function is passed into the Editor module

    Returns

    a component whose left side is the Editor and the right side is the corresponding
    Graph knowledge graph

    See

    Editor for how the state variable graphData gets

    Returns JSX.Element

Generated using TypeDoc