I assume that RestAPI
is your php project directory name
So if you want to call rest api from reactjs you should declare full url of the rest api like
componentDidMount() {
this.serverRequest = $.get("http://localhost/RestAPI/UserCRUD/create.php", function(users) {
this.setState({
users: users.records
});
}.bind(this));
}
Hope it helps!!