Skip to content

Commit

Permalink
use JSX instead of React.createElement
Browse files Browse the repository at this point in the history
  • Loading branch information
layershifter committed Jun 18, 2020
1 parent bfb1932 commit fdb23ff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function createEmotionRenderer(target?: Document): Renderer {
// return () => sheet.flush();
// });

return React.createElement(React.Fragment, null, props.children);
return <>{props.children}</>;
};

const renderRule: RendererRenderRule = (styles, param) => {
Expand Down

0 comments on commit fdb23ff

Please sign in to comment.