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 4f085f1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions jsx-runtime/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,14 @@ 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)) {
if ((ref = normalizedProps.ref)) {
normalizedProps = {};
for (i in props) {
if (i != 'ref') {
Expand Down

0 comments on commit 4f085f1

Please sign in to comment.