-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.js
42 lines (40 loc) · 2.91 KB
/
demo.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import React from 'react';
import YModal from './index.jsx!';
import YButton from 'y-button';
var App = React.createClass({
openModal: function () {
this.refs.myModal.show();
},
render: function () {
return (
<div style={{padding: '10px'}}>
<YButton size="m" ref={this.openModal} onClick={this.openModal}>
M size
</YButton>
<YModal ref="myModal">
<div>
When a user submits a comment, we will need to refresh the list of comments to include the new one. It makes sense to do all of this logic
in CommentBox since CommentBox owns the state that represents the list of comments. When a user submits a comment, we
will need to refresh the list of comments to include the new one. It makes sense to do all of this logic in CommentBox
since CommentBox
owns the state that represents the list of comments. When a user submits a comment, we will need to refresh the list of
comments to include the new one. It makes sense to do all of this logic in CommentBox since CommentBox owns the state
that represents the list of comments. When a user submits a comment, we will need to refresh the list of comments to
to refresh the list of comments to include the new one. It makes sense to do all of this logic in CommentBox since
CommentBox owns the state that represents the list of comments. 123
to refresh the list of comments to include the new one. It makes sense to do all of this logic in CommentBox since
CommentBox owns the state that represents the list of comments. 123
to refresh the list of comments to include the new one. It makes sense to do all of this logic in CommentBox since
CommentBox owns the state that represents the list of comments. 123
to refresh the list of comments to include the new one. It makes sense to do all of this logic in CommentBox since
CommentBox owns the state that represents the list of comments. 123 to refresh the list of comments to include the new one. It makes sense to do all of this logic in CommentBox since
CommentBox owns the state that represents the list of comments. 123 to refresh the list of comments to include the new one. It makes sense to do all of this logic in CommentBox since
CommentBox owns the state that represents the list of comments. 123
asdad asd asd as das das das d
</div>
</YModal>
</div>
);
}
});
React.render(<App/>, document.getElementById('content'));