From 12f7cdcbf4ce9fd7a7ce3d11411a7ea245ecae6f Mon Sep 17 00:00:00 2001 From: shadesofcodes <49083654+ogheneovo12@users.noreply.github.com> Date: Wed, 20 Dec 2023 20:15:09 +0100 Subject: [PATCH] Update README.md --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 53abc41..9f2e6ce 100644 --- a/README.md +++ b/README.md @@ -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