-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c9cf6c9
commit 323226d
Showing
4 changed files
with
40 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,9 @@ | |
.loaded { | ||
opacity: 1; | ||
} | ||
.input-group { | ||
margin-bottom: 15px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
var React = require('react'); | ||
|
||
module.exports = React.createClass({ | ||
getInitialState: function() { | ||
return { | ||
text: this.props.item.text | ||
} | ||
}, | ||
render: function() { | ||
return <div className="input-group"> | ||
<span className="input-group-addon"> | ||
<input type="checkbox" /> | ||
</span> | ||
<input type="text" | ||
className="form-control" | ||
value={this.state.text} | ||
/> | ||
<span className="input-group-btn"> | ||
<button className="btn btn-default"> | ||
Delete | ||
</button> | ||
</span> | ||
</div> | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters