editingNote
An app state of the currently opened note in the editor.
You can obtain the editingNote
state and integrate it with React components.
Data Structure
The state represents Note data while a note opened, otherwise it's null
or undefined
.
Get the editingNote
state manually:
const { editingNote } = inkdrop.store.getState()
Connect the state with your React component:
import { useSelector } from 'react-redux'
const selector = ({ editingNote }) => editingNote
const MyComponent = props => {
const editingNote = useSelector(selector)
// render
}