Optional props passed to uppercase components should be left as they are, no conversion to Js.Optdef.t required. The only exceptions are key and ref which are read by React.js.
Previous implementation led to bugs when using optional prop + default value, where the component would receive undefined when some value was passed (see added tests in test suite).
Fixes #83.
Optional props passed to uppercase components should be left as they are, no conversion to
Js.Optdef.t
required. The only exceptions arekey
andref
which are read by React.js.Previous implementation led to bugs when using optional prop + default value, where the component would receive
undefined
when some value was passed (see added tests in test suite).