I was researching for an alternative for document.createElement()
in LWC when I stumbled upon this article from SF's GitHub page: https://github.com/salesforce/lwc/blob/master/docs/architecture/web-components.md
In LWC, neither of those are available yet, instead, you have to use a temporary proprietary API:
LWC.createElement('bad-1'); // returns an element
What is LWC
in this case, where do I get access to it from? Is it something I need to import like track/wire/api
? Or perhaps is it a like the pubsub
library?