Skip to content
This repository was archived by the owner on Jul 7, 2021. It is now read-only.

Commit 7842955

Browse files
committed
remove create new post api from postForm
1 parent e5a0eb2 commit 7842955

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/components/PostForm.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,7 @@ class PostForm extends Component {
2323
body: this.state.body,
2424
};
2525

26-
fetch("https://jsonplaceholder.typicode.com/posts", {
27-
method: "POST",
28-
headers: {
29-
"content-type": "application/json",
30-
},
31-
body: JSON.stringify(body),
32-
})
33-
.then((res) => res.json())
34-
.then((post) => console.log(post));
26+
// Call Action
3527
}
3628

3729
render() {

0 commit comments

Comments
 (0)