Download next-mdx-remote/src/jsx-runtime.cjs from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 495 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/next-mdx-remote/src/jsx-runtime.cjs
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/next-mdx-remote/src/jsx-runtime.cjs
-
curl -L -o jsx-runtime.cjs https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/next-mdx-remote/src/jsx-runtime.cjs
495 Bytes
| /** | |
| * Copyright (c) HashiCorp, Inc. | |
| * SPDX-License-Identifier: MPL-2.0 | |
| */ | |
| /** | |
| * Allow jsx-runtime to be successfully imported from either React 17 or React 18. | |
| * | |
| * Inspired by the approach here: https://github.com/contentlayerdev/contentlayer/blob/main/packages/next-contentlayer/src/hooks/jsx-runtime.cjs | |
| */ | |
| if (process.env.NODE_ENV === 'production') { | |
| module.exports.jsxRuntime = require('react/jsx-runtime') | |
| } else { | |
| module.exports.jsxRuntime = require('react/jsx-dev-runtime') | |
| } | |