Neoclassic Placebo Maker
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

react-ng

0.0.1 • Public • Published

ReactNg

Usage

rcIf

var ReactNgMixin = require('react-ng');

var A = React.createClass({
  mixins: [ReactNgMixin],
  render: function(){
    return <div>A</div>
  }
})

var B = React.createClass({
  mixins: [ReactNgMixin],
  render: function(){
    return <div>B</div>
  }
})

var Test = React.createClass({
  render: function(){
    return (
      <A rcIf={false} />
      <B rcIf={true} />
    )
  }
})

React.render(
  <Test />,
  element
)

install

npm i react-ng

Downloadsweekly downloads

1

version

0.0.1

license

MIT

repository

githubgithub

last publish

collaborators

  • avatar