Skip to content

Commit

Permalink
Update Overview.md (facebookarchive#2434)
Browse files Browse the repository at this point in the history
Summary:
**Summary**

Import `Draft.css` in the getting started example.
Pull Request resolved: facebookarchive#2434

Reviewed By: claudiopro

Differential Revision: D21652152

Pulled By: mrkev

fbshipit-source-id: 27edcd7ec883fbb83c9dc06661ade9513f9f0b5d
  • Loading branch information
abdellani authored and vilemj-Viclick committed Jul 16, 2020
1 parent bceee44 commit 2660a3b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/Overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ If you are interested in helping out, or tracking the progress, please follow
import React from 'react';
import ReactDOM from 'react-dom';
import {Editor, EditorState} from 'draft-js';
import 'draft-js/dist/Draft.css';

class MyEditor extends React.Component {
constructor(props) {
Expand All @@ -70,6 +71,7 @@ Since the release of React 16.8, you can use [Hooks](https://reactjs.org/docs/ho
import React from 'react';
import ReactDOM from 'react-dom';
import {Editor, EditorState} from 'draft-js';
import 'draft-js/dist/Draft.css';

function MyEditor() {
const [editorState, setEditorState] = React.useState(
Expand Down

0 comments on commit 2660a3b

Please sign in to comment.