drafti
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

drafti

This is in a Rough state and should not be used. I am building and learning as I go with this project.

NPM JavaScript Style Guide

Install

npm install --save drafti

Usage

import React, {useState} from 'react';
import {EditorState}     from 'draft-js';
import {Drafti}          from 'drafti'

const Example = props => {
    // Set up your editorState
    const [editorState, setEditorState] = React.useState(
        EditorState.createEmpty()
    );
    return (
        <Drafti editorState={editorState}
                setEditorState={setEditorState} />
    )
}

License

MIT © nova4005

Readme

Keywords

none

Package Sidebar

Install

npm i drafti

Weekly Downloads

2

Version

0.1.4

License

MIT

Unpacked Size

67.5 kB

Total Files

17

Last publish

Collaborators

  • nova4005