Permalink
Please sign in to comment.
Browse files
Updates Quick Start examples to run as expected
Summary:Hey! Thanks so much for the hard work on this project. I’m just making my way through the documentation now, and I couldn’t get the Quick Start examples to run until I made the following changes.
I have very little React experience, and even less with ES2015 stuff—it’s entirely possible I just misunderstood something in all these cases. Regardless, the examples didn’t work as-is for me, and to the best of my understand, these changes fix that.
The one change I made that was maybe more of an opinion was turning:
```js
const {editorState} = this.state;
return <Editor editorState={editorState} onChange={this.onChange} />
```
…into:
```js
return <Editor editorState={this.state.editorState} onChange={this.onChange} />
```
…which just reduced the complexity for me at the beginning, and had more in common with the initial Input example.
Closes #180
Reviewed By: spicyj
Differential Revision: D3034470
fb-gh-sync-id: c99ba4e24dd42a2c5a0634dfcc6c8faab8cd5b7c
shipit-source-id: c99ba4e24dd42a2c5a0634dfcc6c8faab8cd5b7c- Loading branch information...
Showing
with
13 additions
and 13 deletions.
8
docs/QuickStart-API-Basics.md
18
docs/QuickStart-Rich-Styling.md
0 comments on commit
981483c