Skip to content

Commit

Permalink
fix: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
hirsch88 committed Jan 8, 2022
1 parent d7d6ce4 commit a316a3e
Show file tree
Hide file tree
Showing 3 changed files with 121 additions and 94 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import React, { createElement } from 'react';

import {
attachProps,
Expand Down Expand Up @@ -80,7 +80,14 @@ export const createReactComponent = <
style,
};

return React.createElement(tagName, newProps, children);
/**
* We use createElement here instead of
* React.createElement to work around a
* bug in Vite (https://github.com/vitejs/vite/issues/6104).
* React.createElement causes all elements to be rendered
* as <tagname> instead of the actual Web Component.
*/
return createElement(tagName, newProps, children);
}

static get displayName() {
Expand Down
Loading

0 comments on commit a316a3e

Please sign in to comment.