Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Feb 19, 2024 via pnpm

@mdx-js/react 1.6.6

React implementation for MDX
Package summary
Share
1
issue
1
high severity
meta
1
1
license
7
MIT
Package created
28 Mar 2019
Version published
17 Jun 2020
Maintainers
4
Total deps
7
Direct deps
1
License
MIT

Issues

1

1 high severity issue

high
via: react@16.14.0
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
7 Packages, Including:
@mdx-js/react@1.6.6
js-tokens@4.0.0
loose-envify@1.4.0
object-assign@4.1.1
prop-types@15.8.1
react-is@16.13.1
react@16.14.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

1
All Dependencies CSV
β“˜ This is a list of @mdx-js/react 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
react16.14.059.16 kBMIT
prod peer
1

Visualizations

Frequently Asked Questions

What does @mdx-js/react do?

The @mdx-js/react is a context-based components provider that combines React with MDX. MDX is a format that lets you seamlessly use JSX within your markdown documents. With @mdx-js/react, you can use components from the MDX context in your React applications. This package does not provide a default export, but exports several identifiers including MDXContext, MDXProvider, useMDXComponents, and withMDXComponents.

How do you use @mdx-js/react?

@mdx-js/react is used in conjunction with an MDX compiler to integrate MDX-compiled JavaScript components into a React application. Here is an example of usage:

import {MDXProvider} from '@mdx-js/react'
import Post from './post.mdx'
// The MDX file is assumed to be compiled using an integration like @mdx-js/esbuild, @mdx-js/loader, @mdx-js/node-loader, or @mdx-js/rollup.
// The compiler must do be configured with options.providerImportSource set to '@mdx-js/react'.

const components = {
  em: props => <i {...props} />
}

<MDXProvider components={components}>
  <Post />
</MDXProvider>

You can also pass components directly:

import Post from './post.mdx'

const components = {
  em: props => <i {...props} />
}

<Post components={components} />

Where are the @mdx-js/react docs?

The @mdx-js/react package documentation is available within the package's readme content on GitHub here. This information covers essential technical aspects like the API exports, usage examples, type integration, and more.