Skip to content

Sample Page

This is an example page. It’s different from a blog post because it will stay in one place and will show up in your site navigation (in most themes). Most people start with an About page that introduces them to potential site visitors. It might say something like this:

import React, { useState, useEffect } from 'react';
import { Admin, Resource } from 'react-admin';
import polyglotI18nProvider from 'ra-i18n-polyglot';
import './App.css';
import authProvider from './authProvider';
import themeReducer from './themeReducer';
import { Login, Layout } from './layout';
import { Dashboard } from './dashboard';
import customRoutes from './routes';
import englishMessages from './i18n/en';
import visitors from './visitors';
import orders from './orders';
import products from './products';
import invoices from './invoices';
import categories from './categories';
import reviews from './reviews';
import dataProviderFactory from './dataProvider';
import fakeServerFactory from './fakeServer';
const i18nProvider = polyglotI18nProvider(locale => { if (locale === 'fr') { return import('./i18n/fr').then(messages => messages.default); } // Always fallback on english return englishMessages;
}, 'en');
const App = () => { const [dataProvider, setDataProvider] = useState(null); useEffect(() => { let restoreFetch; const fetchDataProvider = async () => { restoreFetch = await fakeServerFactory( process.env.REACT_APP_DATA_PROVIDER ); setDataProvider( await dataProviderFactory(process.env.REACT_APP_DATA_PROVIDER) ); }; fetchDataProvider(); return restoreFetch; }, []); if (!dataProvider) { return ( <div className="loader-container"> <div className="loader">Loading...</div> </div> ); } return ( <Admin title="" dataProvider={dataProvider} customReducers={{ theme: themeReducer }} customRoutes={customRoutes} authProvider={authProvider} dashboard={Dashboard} loginPage={Login} layout={Layout} i18nProvider={i18nProvider} > <Resource name="customers" {...visitors} /> <Resource name="commands" {...orders} options={{ label: 'Orders' }} /> <Resource name="invoices" {...invoices} /> <Resource name="products" {...products} /> <Resource name="categories" {...categories} /> <Resource name="reviews" {...reviews} /> </Admin> );
};
export default App;

Hi there! I’m a bike messenger by day, aspiring actor by night, and this is my website. I live in Los Angeles, have a great dog named Jack, and I like piƱa coladas. (And gettin’ caught in the rain.)

import React, { useState, useEffect } from 'react';
import { Admin, Resource } from 'react-admin';
import polyglotI18nProvider from 'ra-i18n-polyglot';
import './App.css';
import authProvider from './authProvider';
import themeReducer from './themeReducer';
import { Login, Layout } from './layout';
import { Dashboard } from './dashboard';
import customRoutes from './routes';
import englishMessages from './i18n/en';
import visitors from './visitors';
import orders from './orders';
import products from './products';
import invoices from './invoices';
import categories from './categories';
import reviews from './reviews';
import dataProviderFactory from './dataProvider';
import fakeServerFactory from './fakeServer';
const i18nProvider = polyglotI18nProvider(locale => { if (locale === 'fr') { return import('./i18n/fr').then(messages => messages.default); } // Always fallback on english return englishMessages;
}, 'en');
const App = () => { const [dataProvider, setDataProvider] = useState(null); useEffect(() => { let restoreFetch; const fetchDataProvider = async () => { restoreFetch = await fakeServerFactory( process.env.REACT_APP_DATA_PROVIDER ); setDataProvider( await dataProviderFactory(process.env.REACT_APP_DATA_PROVIDER) ); }; fetchDataProvider(); return restoreFetch; }, []); if (!dataProvider) { return ( <div className="loader-container"> <div className="loader">Loading...</div> </div> ); } return ( <Admin title="" dataProvider={dataProvider} customReducers={{ theme: themeReducer }} customRoutes={customRoutes} authProvider={authProvider} dashboard={Dashboard} loginPage={Login} layout={Layout} i18nProvider={i18nProvider} > <Resource name="customers" {...visitors} /> <Resource name="commands" {...orders} options={{ label: 'Orders' }} /> <Resource name="invoices" {...invoices} /> <Resource name="products" {...products} /> <Resource name="categories" {...categories} /> <Resource name="reviews" {...reviews} /> </Admin> );
};
export default App;

…or something like this:

The XYZ Doohickey Company was founded in 1971, and has been providing quality doohickeys to the public ever since. Located in Gotham City, XYZ employs over 2,000 people and does all kinds of awesome things for the Gotham community.

As a new WordPress user, you should go to your dashboard to delete this page and create new pages for your content. Have fun!