title: How do I access the dataProvider directly in react-admin?
body: <p>How do I access the dataProvider directly in react-admin? I tried to use a <strong>custom</strong> <strong>dataProvider</strong> but I do not know how to use it. My goal is to show a list in the output using the map.</p>
  <p>//Contacts.js</p>
  <pre><code>/// --- List ---
  export const ContactList = (props) =&gt; {
    const classes = useStyles();
    const {data} = useGetList('contacts', props.id);
    return (
       &lt;List className={classes.list}&gt;
        {data.map(({id, name, person}) =&gt; (
          &lt;React.Fragment key={id}&gt;
            &lt;ListItem button&gt;
              &lt;ListItemAvatar&gt;
                &lt;Avatar alt=&quot;Profile Picture&quot; src={person}/&gt;
              &lt;/ListItemAvatar&gt;
              &lt;ListItemText primary={name}/&gt;
            &lt;/ListItem&gt;
          &lt;/React.Fragment&gt;
        ))}
      &lt;/List&gt;
    )
  };
  </code></pre>
  <p>//App.js</p>
  <pre><code>const App = () =&gt; (
    &lt;Admin dataProvider={dataProvider} layout={MyLayout}&gt;
      &lt;Resource
        name=&quot;contacts&quot;
        list={ContactList}
        show={ShowContact}
        edit={EditGuesser}
        create={CreateContact}
        icon={ContactPhoneIcon}/&gt;
    &lt;/Admin&gt;
  );
  
  export default App;
  </code></pre>
  <p>//DataProvider.js</p>
  <pre><code>import fakeDataProvider from 'ra-data-fakerest';
  
  const dataProvider = fakeDataProvider({
    contacts: [
      {
        id: 1,
        name: &quot;Tom&quot;,
        numbers: {number: '09367371111', type: 'Mobile'},
        person: '/static/images/avatar/5.jpg',
  
      },
      {
        id: 2,
        name: &quot;Sara&quot;,
        numbers: {number: '0936737999', type: 'Home'},
        person: '/static/images/avatar/1.jpg',
      },
    ],
  });
  
  export default dataProvider;
  </code></pre>
  <p>Console.log
  <a href="https://i.stack.imgur.com/0iDD6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0iDD6.png" alt="Console.log" /></a></p>