0.1.4 • Published 3 years ago

drafti v0.1.4

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

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

0.1.4

3 years ago

0.1.2

3 years ago

0.1.3

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago