doc: fix example in readme
This commit is contained in:
parent
d1579694a1
commit
9b9150524c
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ import React from 'react';
|
|||
import ReactDOM from 'react-dom';
|
||||
import { Client, Endpoint, Method, useRequest, RequestProvider } from 'react-rest-request';
|
||||
|
||||
const client = Client({
|
||||
const client = new Client({
|
||||
baseUrl: 'https://sampleapis.com/movies/api',
|
||||
});
|
||||
|
||||
|
|
Reference in a new issue