From e2b76d060fd3eaecdf5325342c5dba32e22b0ed6 Mon Sep 17 00:00:00 2001 From: yuler Date: Mon, 7 Sep 2020 18:51:24 +0800 Subject: [PATCH] Fix example typo in buid.mjs --- src/build.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/build.mjs b/src/build.mjs index 05e63fc..927c372 100644 --- a/src/build.mjs +++ b/src/build.mjs @@ -19,13 +19,13 @@ const PROP_APPEND = MODE_PROP_APPEND; // convenient to analyze and transform (e.g. Babel plugins). // For example: // treeify( -// build'
<${x} />
`, +// build`
<${x} />
`, // [X, Y, Z] // ) // returns: // { // tag: 'div', -// props: [ { href: ["1", X] }, Y ], +// props: [ { href: ["1", X] }, Y ], // children: [ { tag: Z, props: [], children: [] } ] // } export const treeify = (built, fields) => {