mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-11 17:53:59 +02:00
Update 04-applying-custom-formatting.md (#3371)
This commit is contained in:
@@ -62,7 +62,7 @@ const App = () => {
|
|||||||
])
|
])
|
||||||
|
|
||||||
const renderElement = useCallback(props => {
|
const renderElement = useCallback(props => {
|
||||||
switch (prop.element.type) {
|
switch (props.element.type) {
|
||||||
case 'code':
|
case 'code':
|
||||||
return <CodeElement {...props} />
|
return <CodeElement {...props} />
|
||||||
default:
|
default:
|
||||||
|
Reference in New Issue
Block a user