UNPKG
ngreact
Version:
latest (0.5.2)
0.5.2
0.5.1
0.5.0
0.4.1
0.4.0
0.3.0
0.2.0
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.0
Use React Components in Angular
davidchang.github.io/ngReact/
davidchang/ngReact
ngreact
/
examples
/
jsx-transformer
/
Hello.jsx
10 lines
(9 loc)
•
245 B
JSX
View Raw
1
2
3
4
5
6
7
8
9
10
var
Hello = React.
createClass
( {
propTypes
: {
fname
: React.PropTypes.
string
.isRequired,
lname
: React.PropTypes.
string
.isRequired },
render
: function() {
return
<span>Hello {this.props.fname} {this.props.lname}</span>; } } );