This commit is contained in:
21
node_modules/@emotion/react/src/jsx-runtime.js
generated
vendored
Normal file
21
node_modules/@emotion/react/src/jsx-runtime.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
import * as ReactJSXRuntime from 'react/jsx-runtime'
|
||||
import Emotion, { createEmotionProps } from './emotion-element'
|
||||
import { hasOwn } from './utils'
|
||||
|
||||
export const Fragment = ReactJSXRuntime.Fragment
|
||||
|
||||
export function jsx(type, props, key) {
|
||||
if (!hasOwn.call(props, 'css')) {
|
||||
return ReactJSXRuntime.jsx(type, props, key)
|
||||
}
|
||||
|
||||
return ReactJSXRuntime.jsx(Emotion, createEmotionProps(type, props), key)
|
||||
}
|
||||
|
||||
export function jsxs(type, props, key) {
|
||||
if (!hasOwn.call(props, 'css')) {
|
||||
return ReactJSXRuntime.jsxs(type, props, key)
|
||||
}
|
||||
|
||||
return ReactJSXRuntime.jsxs(Emotion, createEmotionProps(type, props), key)
|
||||
}
|
||||
Reference in New Issue
Block a user