metal-react
A function that transforms React components into Metal.js components
Usage
Just call the bridge
function with the constructor of the react component
you wish to use, and it will return a metal component you can use instead.
For example:
;; var MetalComponent = ;
Now you can use MetalComponent
inside your
metal-jsx code in the same way
that you'd use SomeReactComponent
. For example:
{ return <MetalComponent foo="foo" />}
Setup
-
Install NodeJS >= v0.12.0 and NPM >= v3.0.0, if you don't have it yet. You can find it here.
-
Install local dependencies:
npm install
- Build the code:
npm run build