rsnext/docs/advanced-features
yuta-ike 04ca8dbff3
Update MDX document (#33916)
This PR added about `providerImportSource` option, which we need to specify in `next.config.js` to use `MDXProvider`. 


Related mdx documents: https://mdxjs.com/docs/using-mdx/#mdx-provider

> To solve this, a context can be used in React, Preact, and Vue. Context provides a way to pass data through the component tree without having to pass props down manually at every level. Set it up like so:
> 1.  Install either @mdx-js/react, @mdx-js/preact, or @mdx-js/vue, depending on what framework you’re using
> 1. Configure your MDX integration with options.providerImportSource set to that package, so either '@mdx-js/react', '@mdx-js/preact', or '@mdx-js/vue'
> 1. Import MDXProvider from that package. Use it to wrap your top-most MDX content component and pass it your components instead:

Because my English skills are not high, feel free to improve my sentences.

## Bug
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [x] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `yarn lint`


Co-authored-by: Lee Robinson <9113740+leerob@users.noreply.github.com>
2022-02-02 15:27:58 +00:00
..
amp-support docs: use descriptive links instead of "click here" (#25897) 2021-06-09 13:23:16 -05:00
automatic-static-optimization.md Refactor data fetching API docs (#30615) 2022-01-12 08:56:51 +01:00
codemods.md Enable Alex documentation linting for docs (#26598) 2021-06-25 11:40:50 -05:00
compiler.md Correct pluralization in newly added Relay documentation (#33880) 2022-02-01 16:03:16 -06:00
custom-app.md Changed data fetching file name to overview to fix meta data title (#33232) 2022-01-27 09:14:14 -06:00
custom-document.md Changed data fetching file name to overview to fix meta data title (#33232) 2022-01-27 09:14:14 -06:00
custom-error-page.md Fixed duplicate data fetching overview page + links (#33774) 2022-01-29 02:52:40 +00:00
custom-server.md Move custom server note from middleware doc (#33744) 2022-01-27 22:58:01 +00:00
customizing-babel-config.md Update babel docs to mention you can use babel.config.js. (#23434) 2021-03-26 16:01:22 +00:00
customizing-postcss-config.md Document CSS Grid Better (#16996) 2020-09-10 13:46:14 -04:00
debugging.md Fixed Yarn and NPM dev swapped arguments (#32135) 2021-12-05 00:47:56 +00:00
dynamic-import.md Document usage of suspense option of next/dynamic (#28210) 2021-08-18 01:21:22 +00:00
i18n-routing.md Fixed broken link (#33209) 2022-01-12 13:35:17 +01:00
measuring-performance.md Updated wrong link to example of gtag init in measuring-performance.md (#32974) 2022-01-04 01:57:59 +00:00
module-path-aliases.md Update module-path-aliases.md (#22739) 2021-03-08 14:19:31 +01:00
multi-zones.md Fixed minor grammar issue (#27493) 2021-07-26 04:19:37 +00:00
output-file-tracing.md Update note about .next/static in standalone mode (#32771) 2021-12-23 12:24:38 -06:00
preview-mode.md Changed data fetching file name to overview to fix meta data title (#33232) 2022-01-27 09:14:14 -06:00
react-18.md doc: add quotes to api (#32898) 2021-12-29 18:15:23 +00:00
security-headers.md Update Content-Security-Policy header usage explanation (#33833) 2022-01-31 20:30:47 +00:00
source-maps.md Fix typo in source maps documentation. (#22952) 2021-03-10 16:41:01 +00:00
src-directory.md No info on environment variables in the src folder (#33110) (#33136) 2022-01-10 13:58:29 +00:00
static-html-export.md Refactor data fetching API docs (#30615) 2022-01-12 08:56:51 +01:00
using-mdx.md Update MDX document (#33916) 2022-02-02 15:27:58 +00:00