Skip to content

Instantly share code, notes, and snippets.

@mattvagni
Last active March 8, 2016 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattvagni/e24a09ae0b1843bb4aa7 to your computer and use it in GitHub Desktop.
Save mattvagni/e24a09ae0b1843bb4aa7 to your computer and use it in GitHub Desktop.
const name = 'b-span';
// With Create
create('div', null,
create('span', {'name': name}, create('b'))]
);
// From String
domUtils.fromString(`
<div>
<span name="${name}">
<b></b>
</span>
</div>
`);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment