doc: fix example in readme

This commit is contained in:
Dmitriy Pleshevskiy 2020-11-05 22:16:19 +03:00
parent d1579694a1
commit 9b9150524c

View file

@ -17,7 +17,7 @@ import React from 'react';
import ReactDOM from 'react-dom'; import ReactDOM from 'react-dom';
import { Client, Endpoint, Method, useRequest, RequestProvider } from 'react-rest-request'; import { Client, Endpoint, Method, useRequest, RequestProvider } from 'react-rest-request';
const client = Client({ const client = new Client({
baseUrl: 'https://sampleapis.com/movies/api', baseUrl: 'https://sampleapis.com/movies/api',
}); });