Giter Club home page Giter Club logo

metal-react's Issues

Support for React 16.0.0

I'm trying to use a react component that requires 16.0.0, but metal-react uses 15.6.2, which causes

Uncaught Error: Unable to find node on an unmounted component.

When trying to use two different versions of react together.

Unmounting react component on disposed

From a quick glance, it looks like the react component is never unmounted. I think we need to need to do something like call ReactDOM.unmountComponentAtNode when the wrapping Metal component is disposed.

If this case is actually handled in some other way or by some other mechanism, feel free to close this.

Fix warning when using react components like react-dropzone

The react-dropzone component works well with metal-react, but it throws out the following warning:

Warning: Unknown props `elementClasses`, `events`, `visible` on <div> tag. Remove these props from the element. For details, see https://fb.me/react-unknown-prop
    in div (created by Dropzone)
    in Dropzone

All three of the props causing the warning are only being passed because all metal components have them, so we pass them over automatically via the bridge.

Possible issues with delegated rendering

I’m sorry I have no time to actually test this, but I wanted to leave at least a note.

There are complex React components that expect functions as children. Those functions will be later called and of course they expect React elements to come out of those.

This means that your synchronous incremental-dom → React element transformation would happen just for the “first level” and not for the results of those functions.

ReactDOM.render(
  <Something>{ param => <span>{ param }</span> }</Something>,
  document.getElementById('something');
);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.