Skip to content

Commit

Permalink
Merge pull request #178 from yuler/master
Browse files Browse the repository at this point in the history
Fix example typo in buid.mjs
  • Loading branch information
developit authored Sep 21, 2020
2 parents dcfbb79 + e2b76d0 commit e241d3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ const PROP_APPEND = MODE_PROP_APPEND;
// convenient to analyze and transform (e.g. Babel plugins).
// For example:
// treeify(
// build'<div href="1${a}" ...${b}><${x} /></div>`,
// build`<div href="1${a}" ...${b}><${x} /></div>`,
// [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) => {
Expand Down

0 comments on commit e241d3a

Please sign in to comment.