2
0
mirror of https://github.com/tenrok/BBob.git synced 2026-05-27 14:45:03 +03:00

docs: correct react preset usage (#29)

Users need to spread the `tags` parameter in order to properly `extend` a
preset. You can see the internals of `preset-react` for another example.
This commit is contained in:
Greg Venech
2019-06-29 07:29:04 -04:00
committed by Nikolay Kostyurin
parent 19d7ff20f1
commit aac6358d53
+1
View File
@@ -140,6 +140,7 @@ import reactPreset from "@bbob/preset-react";
import reactRender from "@bbob/react/es/render";
const preset = reactPreset.extend((tags, options) => ({
...tags,
quote: node => ({
tag: "blockquote",
content: node.content