Closed 88kami88 closed 6 years ago
A prop value is true
by default. https://facebook.github.io/react/docs/jsx-in-depth.html
Does this implementation work like that?
So this is a babel plugin that transforms a createElement
call into an object representation of an element. React will still handle turning the valueless prop into a true value.
There might be performance gains to be had by transforming no value into true though, I'll have to look into it.
@divmain I'm not sure how to rectify this error. I committed an empty line:
msg — Commit message for 7c9ef24 must have empty second line. Required
Fixes #73
babel-types/ObjectProperty
expects ababel-types
null literal or empty JSX expression when the value of an attribute is not given.If the attribute value is
null
, use.nullLiteral()
. If the attribute value isundefined
, usejSXEmptyExpression
.There are no tests for
babel-plugin-server
that I can find.The maintainers of this repo require that all pull request submitters adhere to the following:
The maintainers of this repository require you to select the semantic version type that the changes in this pull request represent. Please select one of the following: