Use PHP within React Components
ฝัง
- เผยแพร่เมื่อ 26 ส.ค. 2024
- I made PHP work inside of React Components by adding a "use PHP" directive you can invoke a Next.js Server action that will execute PHP Code and return the output that you can use right within Javascript. It utilizes the new Next.js Server Actions Feature.
Is this efficient in any way? 😅