0.0.25 • Published 3 years ago

@bitmetro/react-page-editor v0.0.25

Weekly downloads
223
License
-
Repository
github
Last release
3 years ago

@bitmetro/react-page-editor

react page editor

An easy-to-use drag-and-drop content editor for React.

Note that this is currently a WIP and there may be breaking changes.

You can raise any issues or ask questions in the Github repo.

Installation

npm install --save @bitmetro/react-page-editor

Usage

const App = () => {
    const [state, setState] = React.useState(createPage());

    return <ContentEditor content={state} onChange={s => setState(s)} />;
};

Running the examples

Navigate into examples and then into one of the example projects, e.g. Basic, then:

npm install
npm start

And navigate to http://localhost:8787

Documentation

// Todo 🤙