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 { useSelector } from 'react-redux'
const selector = ({ preview }) => preview
const MyComponent = props => {
const preview = useSelector(selector)
// 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!