POST Request
- Send a fetch request to "/api" url with POST method.
- You will get a code(a string) as a response in the response body.
- Set the postCode state to the code you received as a response. Hint: Call the fetch method inside the useEffect() function.