Getting started with React.js & PHP

preview_player
Показать описание


Equipment:

Please subscribe!
Check me out:
Рекомендации по теме
Комментарии
Автор

For those who also have 'has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.' problem, starting from 8:18

girlandhercomputer
Автор

Exactly what I needed. Basic, Easy, Simple, Perfect. Thank you so much.

Kawin
Автор

Thanks for the video! I still had a problem towards the end but looking at your code it looks like during the cut you also added a formData to the getPHP function and used that for the fetch body. Doing that on my end too and removing the headers fixed it for me. Just leaving this here in case anyone else had a similar issue.

Wolfborgg
Автор

Thx for this vid, I'm new at React and I wanted to know how React and PHP works. This helped me too much! I haven't found anything simillar on the internet.. Good work!

ondraczsk
Автор

Thank you so much bro . . . You have saved my two days of frustration

venuprasadhu
Автор

Hi Keith! Thanks for the short and informative video, exactly what I needed to use in my upcoming project. I wanted to know the next step - how do you deploy the application to a shared hosting(PHP based hosting)? It'd be hugely helpful if you can reply.

mayurjoshi
Автор

It seems like the fetch POST method is not reading the content. It gives the warning Undefined array key "content" for this line $content = $_POST['content']; what can I do about this? I need help

genn.
Автор

If your headers say JSON, then the data is sent as JSON. You can either do as he did and remove them so that a POST is sent and accessed via $_POST. Or you can use $jsonData = and that will make $jsonData an array similar to $_POST.

jarodmorris
Автор

Thank you so much bro. I was got error by the cors policy. Now its fixed by creating. htaccess file

Logic_Realm_YT
Автор

Exactly what i needed thanks a lot! (:

mmr
Автор

hi, is there any PHP library similar to React?

HaifengZhu-pnuq
Автор

not too much of a "how to" video if you refuse to show "how to" do the php part... lol.

jester
Автор

I am trying to do the same thing but with XAMPP, I tried the .htaccess script but that didn't work. I have the php headers stated in the file before getting $_POST['firstName'] and that doesn't work, an error is thrown saying index of firstName isn't found. Please help, you are the only one I have found that has tried the same thing.

RyanWHaire
Автор

so what can i do to make them work in production. how can i create a build to upload to my hosting?

PepeTostado
Автор

could you post finished code? its pretty tedious to copy code like this but even then my cors policy still isnt working after copying everything and the last section you change code without mentioning it :)

garrettcambre
Автор

Thanks for the tutorial. That was very helpful.

jeanjeanful
Автор

ini Keith yang tinggal di Indonesia bukan? yang aslinya orang UK ?

titocandraseptio
Автор

So typically when you use react and php together, do you not use MVC way of doing things? Also, does react "client" folder not sit inside the same file as php does? you keep the php and react files separate on different servers like you are doing now? I don't know if I asked this question correct.Anyways, I know how use to use express with react, and my files are all set up inside the same folder.

Cognitoman
Автор

Still waiting the React-PHP production release video. Please, need it.

rojmedisma
Автор

how can i validate login form with reactjs using php project with d same folder..!!

KK-wdnc