Skip to content

Commit b3d6dbd

Browse files
authored
Update root docs (#208)
1 parent 05a0be0 commit b3d6dbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ React Resource Router was developed by Atlassian for [Jira](https://www.atlassia
3232
Resources describe and provide the data required for your route. This data is safely stored and accessed via the `useResource` hook or `ResourceSubscriber` component.
3333

3434
```js
35-
import { createResource } from 'react-resource-router';
35+
import { createResource } from 'react-resource-router/resources';
3636
import { fetch } from '../common/utils';
3737

3838
export const homeResource = createResource({
@@ -53,7 +53,7 @@ export const aboutResource = createResource({
5353
These are the React components that get rendered for your routes. As mentioned, they can be wired into the state of your resources via the `useResource` hook or `ResourceSubscriber` component.
5454

5555
```js
56-
import { useResource } from 'react-resource-router';
56+
import { useResource } from 'react-resource-router/resources';
5757
import { aboutResource, homeResource } from '../routes/resources';
5858
import { Loading, Error } from './common';
5959

0 commit comments

Comments
 (0)