Reactjs in Drupal with WebPack
Using create react app, is a lot like living with your parents.
In the way, you don't have the freedom to do what you want/wish unless you eject.
Using create react app, is a lot like living with your parents.
In the way, you don't have the freedom to do what you want/wish unless you eject.
In this blog, we will see how we could improve our front end developer experience as well as performance by introducing webpack (plugins and loaders in the eco system) as an extra tool in our front-end development toolbox 🧰 🧰 .
Some of the problems webpack tries to solve include;
We can arrange our front-end project into different files and folders for easier development and maintenance and bundle/pack that maybe into one or several files as our app requires.
Two years ago, I wrote a blog demonstrating how one could integrate Paypal express checkout in Drupal, but...; in tech, things move(change) fast, mostly for better:
that blog was about PayPal api v1 - one reason being; the Paypal SDK library we were extending has been abandoned (deprecated) for a better one.
In this blog we will attempt to achieve the same and make things better. We will use smart payment buttons to initiate and authorize an order, and add the necessary logic in Drupal to process the authorized order (payment) details in the request object.
Â
Â