Skip to content

Commit

Permalink
Make test pass - render children
Browse files Browse the repository at this point in the history
  • Loading branch information
bruceharris committed Dec 6, 2017
1 parent 46ff6b4 commit f673f05
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
import LoadingIndicator from './components/LoadingIndicator';

class App extends Component {
render() {
Expand All @@ -13,6 +14,9 @@ class App extends Component {
<p className="App-intro">
To get started, edit <code>src/App.js</code> and save to reload.
</p>
<LoadingIndicator isLoading={false}>
<div>ahoy!</div>
</LoadingIndicator>
</div>
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/LoadingIndicator.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import PropTypes from 'prop-types';

export default class LoadingIndicator extends Component {
render() {
return null;
return this.props.children;
}
}

Expand Down

0 comments on commit f673f05

Please sign in to comment.