Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/walkthroughs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ const Editor = () => {

// Setup the binding
const editor = useMemo(() => {
const sharedType = provider.document.get('content', Y.XmlText);
const e = withReact(withYjs(createEditor(), sharedType));

// Ensure editor always has at least 1 valid child
Expand All @@ -202,6 +201,7 @@ const Editor = () => {
{ at: [0] }
);
};
return e;
}, []);

const [value, setValue] = useState([])
Expand Down