createElement setting?
See original GitHub issueWe allow createClass
to be overridden with a setting - should we allow createElement
to be configured as well?
If so, any rules referencing React.createElement
should be sure to use <pragma>.<createElement>
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Document.createElement() - Web APIs | MDN
createElement () method creates the HTML element specified by tagName, or an HTMLUnknownElement if tagName isn't recognized.
Read more >HTML DOM Document createElement() Method - W3Schools
HTML DOM Document createElement() ... The createElement() method creates an element node. ... createElement() is a DOM Level 1 (1998) feature.
Read more >JavaScript document.createElement() By Practical Examples
In this tutorial, you will learn how to use the JavaScript document.createElement() to create a new HTML element and attach it to the...
Read more >Javascript function document.createElement(tagName ...
I get that this is an ancient question (relatively), and @Luke-Weaver's answer already gave a route involving jQuery, but the following is an...
Read more >How to createElement in JavaScript? - CodeBrainer
createElement method creates a new HTML element within DOM. When calling the method, you have to provide a tag name that defines the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Would it make sense to also allow
h(...)
as an alternative toReact.createElement(...)
? It’s a relatively common pattern exposed by preact.This works for me