From 435f76b7ea76938924c4e52bc82830319fa17b1d Mon Sep 17 00:00:00 2001 From: asvarcas Date: Mon, 5 Oct 2020 23:03:09 -0300 Subject: [PATCH] Fix imports in resources example --- docs/Admin.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/Admin.md b/docs/Admin.md index aea59792eef..9da37860182 100644 --- a/docs/Admin.md +++ b/docs/Admin.md @@ -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 `` component using two lower-level components: `` (responsible for putting the providers in contexts) and `` (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() {