diff --git a/lib/createElement.js b/lib/createElement.js index f9e321c9..72b54f5f 100644 --- a/lib/createElement.js +++ b/lib/createElement.js @@ -1,9 +1,15 @@ 'use strict' -// JSX compatible - var Element = require('./Element') +/** + * JSX compatible API, use this function as pragma + * https://facebook.github.io/jsx/ + * + * @param {string} name name of the element + * @param {object} attrs object of attribute key/value pairs + * @return {Element} Element + */ module.exports = function createElement (name, attrs /*, child1, child2, ...*/) { var el = new Element(name, attrs)