Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

Remove dependency on react-dom #68

Open

Description

@fabslab

With 0.14 React release the core React library is split from the DOM renderer in order to encourage projects like this to create their own rendering system. Are there plans to make a new renderer or will react-art continue to use react-dom? Will there be tutorials on the React site in the future on how authors can create their own renderer (what integration methods are required etc)?

Activity

  1. sebmarkbage commented on Oct 8, 2015

    @sebmarkbage
    Contributor

    Yea, the idea is that eventually React ART will integrate its own renderer and eventually we'll have a publicly supported way of doing so. The big blocker is making it work seamlessly across renderers with context etc.

    This is related too. react/react#4230

  2. sebmarkbage commented on Oct 8, 2015

    @sebmarkbage
    Contributor

    Note that even <Surface /> doesn't need a dependency on react-dom since it can render the tag as a string and the ref resolves directly to the node.

  3. sophiebits commented on Oct 8, 2015

    @sophiebits
    Member

    It already doesn't depend on react-dom:

    react-art/package.json

    Lines 20 to 26 in d98e74e

    "dependencies": {
    "art": "^0.10.0",
    "fbjs": "^0.2.0"
    },
    "peerDependencies": {
    "react": "^0.13.0 || ^0.14.0-a"
    },

    (That's not a practical help right now since there aren't any other DOM renderers.)

  4. fabslab commented on Oct 8, 2015

    @fabslab
    Author

    But react-art assumes the user is using ReactDOM doesn't it? As given in your example https://github.com/reactjs/react-art/blob/master/examples/vector-widget/app.js#L7

  5. sebmarkbage commented on Oct 8, 2015

    @sebmarkbage
    Contributor
  6. sophiebits commented on Oct 8, 2015

    @sophiebits
    Member

    @sebmarkbage I think that's actually fine? That points to the composite.

  7. sebmarkbage commented on Oct 8, 2015

    @sebmarkbage
    Contributor

    @spicyj Not if that composite was rendered by a different renderer than react-dom. Unless it also uses the same ReactInstanceMap. Note that this is the Surface so it shouldn't have been rendered by ReactART.

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