Skip to content

Commit

Permalink
Fix some formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kay-is committed Sep 27, 2018
1 parent 24e73bb commit 47a9a92
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion 07-property-example.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<script type="text/babel">
// Here's a more practical example of a component, it formats a date
// and returns a <span> containing that formatted string.
function DateSpan(props) {
function DateSpan(props) {
var date = props.date,
day = date.getDate(),
month = date.getMonth() + 1,
Expand Down
2 changes: 1 addition & 1 deletion 08-nested-components.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// for this, the children property is used inside the component

// This component just wraps its children in an <li> element
function Item(props) {
function Item(props) {
return <li>{props.children}</li>;
}

Expand Down
3 changes: 2 additions & 1 deletion 10-example-app.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@

<div id="app"></div>

<script type="text/babel">var Idle = function(props) {
<script type="text/babel">
var Idle = function(props) {
return (
<React.Fragment>
<button onClick={props.onStart}>Start timer</button>
Expand Down

0 comments on commit 47a9a92

Please sign in to comment.