preview

An app state of Markdown preview pane. To get the preview state:

const { preview } = inkdrop.store.getState()

Or, to connect with your React component:

import { connect } from "react-redux"

const connector = connect(
  ({ preview }) => ({ preview }),
  dispatch => ({ dispatch })
)

const MyComponent = connector(props => {
  // render
})

Data Structure

dom: ?Object

A React DOM that was generated by Markdown renderer.

lastError: ?Error

The last error that was occurred while rendering a note

Can you help us improve these docs?

The source of these docs is here on GitHub. If you see a way these docs can be improved, please fork us!