Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ogheneovo12 authored Dec 20, 2023
1 parent 78dbf08 commit 12f7cdc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,11 @@ function App() {
}
```
`documentFeatures` is basically the layout specification, should match what was specified in the cms document field config
The Document Editor uses slate under the hood, which is an uncontrolled component, we are using ref so as to maintain the initialValue across rerenders, as the document
`documentFeatures` is basically the layout specification, should match what was specified in the cms document field config.

The Document Editor uses slate under the hood, which is an uncontrolled component, we are using ref so as to maintain the initialValue across rerenders, as the document
editor tends to remount for every rerender (using a state, leads to some weird behaviour, editor always remounting while being typed on).

## Contribution

1. Clone your repo
Expand Down

0 comments on commit 12f7cdc

Please sign in to comment.