UNPKG
@stayradiated/ngreact
Version:
latest (0.2.4)
0.2.4
0.2.3
0.2.2
0.2.1
Use React Components in Angular
davidchang.github.io/ngReact/
davidchang/ngReact
@stayradiated/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>; } } );