We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad923e5 commit 00b8990Copy full SHA for 00b8990
README.md
@@ -46,7 +46,37 @@ ReactDOM.render(<App />, document.getElementById('root'));
46
47
## Options:
48
49
-url : _string_
+### GET
50
+```
51
+useFetch({
52
+ url: "https://jsonplaceholder.typicode.com/todos/1"
53
+ })
54
55
+
56
+### POST
57
58
59
+ url: "https://jsonplaceholder.typicode.com/posts",
60
+ method: "POST",
61
+ body: JSON.stringify({
62
+ "userId": 1,
63
+ "id": 1,
64
+ "title": "sunt aut facere",
65
+ "body": "quia et suscipit"
66
67
68
69
70
+### HEADERS
71
72
73
74
+ headers: {
75
+ 'Accept': 'application/json',
76
+ 'Content-Type': 'application/json'
77
+ }
78
79
80
81
## License:
82
0 commit comments