Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow props to be null or undefined, for parcel.js
Using parcel.js with the following jsx pragma and code: ```jsx /** @jsx h */ import h from 'solid-js/h' import { render } from 'solid-js/dom' render( () => <h1>HELLO</h1>, document.getElementById('root') ); ``` ...causes it to call `h` like this: ```js h("h1", null, "HELLO") ``` ...which fails, because `props` is `null`, and is seen as being `typeof "object"`. This commit allows `props` to be ignored if `null`, instead of being treated like an `object`.
- Loading branch information