File tree Expand file tree Collapse file tree
examples/Tornado-example/static/js Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import React from 'react' ;
2+
3+ class CommentForm extends React . Component {
4+ render ( ) {
5+ return (
6+ < form method = "post" action = { this . props . url } >
7+ < input type = "hidden" name = "_xsrf" value = { this . props . xsrf } />
8+ < h2 > Submit a comment</ h2 >
9+ < div className = "form-group" >
10+ < label >
11+ Your hello
12+ < input name = "author" type = "text" className = "form-control" placeholder = "..." />
13+ </ label >
14+ </ div >
15+ < div className = "form-group" >
16+ < label >
17+ Say something...
18+ < textarea name = "text" className = "form-control" placeholder = "..." />
19+ </ label >
20+ </ div >
21+ < div className = "text-right" >
22+ < button type = "reset" className = "btn btn-default" > Reset</ button >
23+ < button type = "submit" className = "btn btn-primary" > Submit</ button >
24+ </ div >
25+ </ form >
26+ ) ;
27+ }
28+ }
29+
30+ export default CommentForm ;
You can’t perform that action at this time.
0 commit comments