Skip to content

Commit

Permalink
Fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
astralarya committed May 27, 2016
1 parent c8a9a8b commit 2e08863
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,20 @@ Inspired by [chrisdone/jquery-console](https://github.com/chrisdone/jquery-conso
Simple prompt that echoes back input:

```javascript
let EchoPrompt = React.createClass({
let EchoConsole = React.createClass({
echo: function(text) {
this.console.log(text);
this.console.return();
this.refs.console.log(text);
this.refs.console.return();
},
render: function() {
return <Console ref="console" handler={this.echo}/>;
}
});
```

Include `react-console.js` and `react-console.css` in your html.


## Props

Properties you can pass to the console element
Expand Down

0 comments on commit 2e08863

Please sign in to comment.