Skip to content

huisenwu/ngReact-with-transclude

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ngReact-with-transclude

Add transclude to ngReact library

Installation

Install via Bower:

bower install git://github.com/huisenwu/ngReact-with-transclude.git

or via npm:

npm install git://github.com/huisenwu/ngReact-with-transclude.git

Usage

For example, you want to use angular directive transcluded content as React children props.

hello.js

React.createClass({
  render: function() {
    return <h1>{this.props.children}</h1>;
  }
});

hi.js

React.createClass({
  render: function() {
    return <span>{this.props.children}</span>;
  }
});
<hello><hi>Hello World</hi></hello>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published