Skip to content

Commit

Permalink
shave
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock committed Apr 11, 2024
1 parent 8a060b9 commit 4cdc45a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jsx-runtime/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ const isArray = Array.isArray;
* @param {unknown} [__self]
*/
function createVNode(type, props, key, isStaticChildren, __source, __self) {
if (!props) props = {};
// We'll want to preserve `ref` in props to get rid of the need for
// forwardRef components in the future, but that should happen via
// a separate PR.
let normalizedProps = props || {},
let normalizedProps = props,
ref,
i;
if (normalizedProps && (ref = normalizedProps.ref)) {
Expand Down

0 comments on commit 4cdc45a

Please sign in to comment.