Skip to content

Commit

Permalink
Merge pull request #5352 from WiXSL/fix-docs-imports
Browse files Browse the repository at this point in the history
[Doc] Fix imports in resources example
  • Loading branch information
djhi authored Oct 6, 2020
2 parents 90fad77 + 435f76b commit 2f92a4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/Admin.md
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,8 @@ So it's impossible, for instance, to have a dynamic list of resources based on a
To overcome this limitation, you can build your own `<Admin>` component using two lower-level components: `<AdminContext>` (responsible for putting the providers in contexts) and `<AdminUI>` (responsible for displaying the UI). Here is an example:

``` jsx
import * as React, { useEffect, useState } from 'react';
import * as React from 'react';
import { useEffect, useState } from 'react';
import { AdminContext, AdminUI, Resource, ListGuesser, useDataProvider } from 'react-admin';

function App() {
Expand Down

0 comments on commit 2f92a4f

Please # to comment.