From e5e293f100220d33d762722dc55462d6c0d5e692 Mon Sep 17 00:00:00 2001 From: Mohamed ABDELLANI Date: Wed, 20 May 2020 08:29:36 -0700 Subject: [PATCH] Update Overview.md (#2434) Summary: **Summary** Import `Draft.css` in the getting started example. Pull Request resolved: https://github.com/facebook/draft-js/pull/2434 Reviewed By: claudiopro Differential Revision: D21652152 Pulled By: mrkev fbshipit-source-id: 27edcd7ec883fbb83c9dc06661ade9513f9f0b5d --- docs/Overview.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/Overview.md b/docs/Overview.md index dedc133b89..8a53222343 100644 --- a/docs/Overview.md +++ b/docs/Overview.md @@ -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) { @@ -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(