React Wait For Post Request Example