Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Use custom 2-way data binding for editing #5

Description

@slorber

React has a way to synchronize the state with the inputs, without having to create many onChange functions on the inputs:
http://facebook.github.io/react/docs/two-way-binding-helpers.html

What they do not say is that it's easy to create your own Mixin to be able to bind the inputs to fields of the graph.

One could easily bind the input on a graph with a syntax like this:

<input type="text" valueLink={this.linkToPgLiteral('pgInState','foaf:name')} />

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions