metal / metal-react Goto Github PK
View Code? Open in Web Editor NEWA function that transforms React components into Metal.js components
License: Other
A function that transforms React components into Metal.js components
License: Other
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.
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.
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.
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');
);
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.