I won't go into much detail here. But of course, if you go with React and React Server components, you have more benefits than just going with raw PHP, or even with modern PHP frameworks. For example, you have isomorphic rendering, what it means you only have one language for front-end and back-end. You literally use the same component. You can use it on the back-end, render it in the back-end, or you can also use it in the front-end. That's not possible with PHP at all. And because React is or was a front-end framework, we can use all the client-side browser features like Canvas, WebGL. Obviously, this is not possible when you go with a PHP application.
And yeah, it's kind of a different approach. Also, there is a rich NPM ecosystem in PHP. You also have the Composer ecosystem where you also have tens of thousands of libraries. Obviously, we all love and like the NPM ecosystem and all its libraries, and it's easy to use developer experience. So when you compare that, it's not only about the architecture, it's also about programming languages and also the ecosystem that come with the solution.
Just our approach as an agency and also from the NodeHive way, obviously your application is not a solitary architecture. It's typically part of a wider digital ecosystem. And our approach and our thinking is, so let's say we have a Next application or we have multiple Next applications here, and we do a lot of headless, content management, and we do a lot of headless, content management applications and websites. And now since we have a backend on the frontend, you could say we can make this interaction between the headless CMS and the actual frontend website much simpler and more secure. As well as if needed, we can directly from the frontend access a microservice which is not even part of the headless core platform. So that means the frontend application has more flexibility to pull in data from various data sources. I'm not saying that this is the perfect way to architect the site, but just in general, in terms of possibilities, how you do that. And that's very, very powerful.
So you don't need to build your own API layer between the frontend application and several microservices in the back. And with this architecture, we have a big success. It simplifies projects and makes it much more, yeah, faster to develop and much more feature-rich and easy to integrate. Yeah, with that said, again, I want to build awesome stuff and I'm excited for React Summit. I will also be there. Let's share about JavaScript and React and PHP and Drupal. I'm there and I'm very excited to see what you think. And I hope next release of Next.js, we can say, hey, we actually learned a lot from PHP. And in the next Drupal release, we can say, hey, we learned a lot of React. Thank you very much for your interest. And yeah, I'm around. Come to me and ask questions. See you next time. Bye.
Comments