Skip to content

Commit 86936fb

Browse files
mattgreenfieldjdecked
authored andcommitted
Fixes incorrect docs, see facebookarchive#1497 (facebookarchive#1837)
Summary: **Summary** Updates the docs to fix facebookarchive#1497. The current suggested method results in an `Element type is invalid:` error. I can confirm that using the component itself rather than its name as a string works as expected. Credit goes to albertlockett Pull Request resolved: facebookarchive#1837 Differential Revision: D9734736 fbshipit-source-id: 91aee43c504a3d5eda1bc74548f806faae4bc35d
1 parent 4684dd9 commit 86936fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/Advanced-Topics-Custom-Block-Render.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ const blockRenderMap = Immutable.Map({
142142
// element is used during paste or html conversion to auto match your component;
143143
// it is also retained as part of this.props.children and not stripped out
144144
element: 'section',
145-
wrapper: MyCustomBlock,
145+
wrapper: <MyCustomBlock />,
146146
}
147147
});
148148

0 commit comments

Comments
 (0)