To get started with Blocks you need to install the library and then use the component in your app.
yarn add @blocks/editorimport React from 'react'
import { Editor } from '@blocks/editor'
import { serializer, stringifyMDX } from '@blocks/serializer'
export default () => (
<Editor
initialValue='# Hello, world!'
onChange={({ value }) => {
console.log(value)
const mdx = stringifyMDX(serializer.serialize(value))
console.log(value)
}}
/>
)