Run the application $webpack make sure file api/comments is writeable by the server. Visit url http://localhost/php-react-comment/index.html