UNPKG
@seesaw/ngreact
Version:
latest (0.5.4)
0.5.4
0.5.3
Use React Components in Angular
github.com/mariaines/ngReact
mariaines/ngReact
@seesaw/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>; } } );