Skip to content

Commit 5f3cfb7

Browse files
committed
chore: format
1 parent f0518cc commit 5f3cfb7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/routers/picking-a-router.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,12 @@ If you're not interested in the data APIs, you can continue to use [`<BrowserRou
6767
Testing components that use React Router APIs is easiest with [`createMemoryRouter`][creatememoryrouter] or [`<MemoryRouter>`][memoryrouter] instead of the routers you use in your app that require DOM history APIs.
6868

6969
Some of the React Router APIs internally use `fetch`, which is only supported starting from Node.js v18. If your project uses v17 or lower, you should add a `fetch` polyfill manually. One way to do that, is to install [`whatwg-fetch`](https://www.npmjs.com/package/whatwg-fetch) and add it to your `jest.config.js` file like so:
70+
7071
```js
7172
module.exports = {
72-
setupFiles: ['whatwg-fetch'],
73+
setupFiles: ["whatwg-fetch"],
7374
// ...rest of the config
74-
}
75+
};
7576
```
7677

7778
## React Native

0 commit comments

Comments
 (0)