So, We wanted to use redux in Next.js project. Setup is easy but after redux setup, “getInitialProps” method stopped working for pages.
We did research on that and found out solution for it. Basically, we had to overwrite “App” component from Next.js.
To overwrite “App” component from Next.js, you would require to create “_app.js” file. Here it is.
getInitialProps method should call and you’ll get store in the method. Checkout index.js page.
Cool, now you you can leverage the power of redux and next.js both in our Next application.🔥🔥🔥
If you enjoyed reading this blog post, please click on the clap button below! ❤️👇
Why do you need Laravel Mix?
Let’s suppose you want to run your app on local sub-domain like http://dev.example.com for development, and you only want to
watchthe file changes, without necessarily using hot reloading. The
create-react-app (https://github.com/facebook/create-react-app) does not provide ability to
watchchanges. It is the perfect case where you can use
Laravel Mix .
Let’s see how to setup React with hot reloading using Laravel Mix.
npm install --save-dev react…
In PHP 7.x, now we have phthread extension available to create a new thread and divide your long task in multi thread to complete it faster.
But what if you don’t have phthread extension on your server?
You will find your question answered here!
You can spawn multi processes, also know as parallel processes to complete a long task. For example, you want to send bulk 100k+ emails from application, this is the best case where you can use multi processing with PHP.
There is a component(library) “The Process Component” in Symfony which you can utilised in your PHP project. …