diff --git a/examples/demo/src/invoices/InvoiceShow.js b/examples/demo/src/invoices/InvoiceShow.js
index 62cfea98c72..905d23b700d 100644
--- a/examples/demo/src/invoices/InvoiceShow.js
+++ b/examples/demo/src/invoices/InvoiceShow.js
@@ -3,7 +3,7 @@ import Card from '@material-ui/core/Card';
import CardContent from '@material-ui/core/CardContent';
import Grid from '@material-ui/core/Grid';
import Typography from '@material-ui/core/Typography';
-import { ShowController, ReferenceField, TextField } from 'react-admin';
+import { useShowController, ReferenceField, TextField } from 'react-admin';
import Basket from '../orders/Basket';
@@ -17,80 +17,54 @@ const CustomerField = ({ record }) => (
);
-const InvoiceShow = props => (
-