Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var Foo = React.createClass({
- getInitialState: function() {
- return {
- id: this.props.id || idGenerator.unique()
- }
- }
- .....
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement