I'm creating a ContentState from an Array of blocks that were created programmatically, but when I created an EditorState using the ContentState nothing shows up in the edtior, is this the right way to create custom blocks?
const dummyBlocks = [ new ContentBlock({
key: genKey(),
type: 'atomic',
depth: 0,
text: "This is a test block 1",
characterList: List()
}), new ContentBlock({
key: genKey(),
type: 'atomic',
depth: 0,
text: "This is a test block 2",
characterList: List()
})];
const cs = ContentState.createFromBlockArray(dummyBlocks);
const es = EditorState.createWithContent(cs);