InfoHeap
Tech
Navigation
  • Home
  • Tutorials
    • CSS tutorials & examples
    • CSS properties
    • Javascript cookbook
    • Linux/Unix Command Line
    • Mac
    • PHP
      • PHP functions online
      • PHP regex
    • WordPress
  • Online Tools
    • Text utilities
    • Online Lint Tools
search

React FAQ

  • JSXTransformer vs babel
  • React.render vs ReactDOM.render
  • React.DOM factory methods
  • Error - Adjacent JSX elements must be wrapped
 
  • Home
  • > Tutorials
  • > Javascript
  • > React
  • > React FAQ

React – list of all factory methods of React.DOM

on Feb 12, 2016

React has many factory methods for inbuilt components like div, span, etc. Here is javascript code snippet which can be used to dump all methods in React.DOM using Object.getOwnPropertyNames

var React = require("react");
console.log(Object.getOwnPropertyNames(React.DOM).filter(function (x) {
  return typeof React.DOM[x] === 'function'
}));
Env: node version v10.24.1

Suggested posts:

  1. React component tutorial with click handler – javascript version
  2. Javascript – print all methods of an object
  3. React.render vs ReactDOM.render – which one should be used?
  4. React – JSXTransformer vs babel – which one should be used?
  5. CSS transform – skew (skewX and skewY)
  6. Python xrange examples
  7. node – how to find version of installed package
  8. Linux – how to enable password login on ssh server
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged Node.js, React FAQ, Tutorials
  • Browse content
  • Article Topics
  • Article archives
  • Contact Us
Popular Topics: Android Development | AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | Company results | CSS | CSS cookbook | CSS properties | CSS Pseudo Classes | CSS selectors | CSS3 | CSS3 flexbox | Devops | Git | HTML | HTML5 | Java | Javascript | Javascript cookbook | Javascript DOM | jQuery | Kubernetes | Linux | Linux/Unix Command Line | Mac | Mac Command Line | Mysql | Networking | Node.js | Online Tools | PHP | PHP cookbook | PHP Regex | Python | Python array | Python cookbook | SEO | Site Performance | SSH | Ubuntu Linux | Web Development | Webmaster | Wordpress | Wordpress customization | Wordpress How To | Wordpress Mysql Queries | InfoHeap Money

Copyright © 2025 InfoHeap.

Powered by WordPress