Skip to content
This repository was archived by the owner on Nov 21, 2025. It is now read-only.

Commit e52340b

Browse files
tamagokunrakannimer
authored andcommitted
feat(gatsby-theme-docz): add jsxFrag pragma (#1269)
If a component is specifying a jsx pragma and is using `<></>` Fragment shorthand, they must also specify a fragment pragma. https://babeljs.io/docs/en/next/babel-plugin-transform-react-jsx.html#fragments
1 parent de00a1e commit e52340b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • core/gatsby-theme-docz/src/components/Sidebar

core/gatsby-theme-docz/src/components/Sidebar/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/** @jsx jsx */
2+
/** @jsxFrag React.Fragment */
23
import React, { useState, useRef, useEffect } from 'react'
34
import { Global } from '@emotion/core'
45
import { jsx, Box } from 'theme-ui'

0 commit comments

Comments
 (0)