Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ var React = require('react');
var parseTag = require('./parse-tag');

module.exports = h;
module.exports.createElement = React.createElement

function h(componentOrTag, properties, children) {
// If a child array or text node are passed as the second argument, shift them
Expand Down Expand Up @@ -42,7 +43,7 @@ function h(componentOrTag, properties, children) {

// Create the element
var args = [componentOrTag, properties].concat(children);
return React.createElement.apply(React, args);
return module.exports.createElement.apply(React, args);
}

function isChildren(x) {
Expand Down