Aaron 3 January 2023 wordpress, business, economy, design

Everything You Need to Know About React JS

Blog image
  Monolithic architecture, which has been the norm in software development for decades now, is being replaced by microservices as an alternate strategy.Initially, the success of monolithic designs has a long history. Consequently, several software vendors and industry leaders firmly believe in its benefits. But as times change, new technical advancements appear that are more advantageous than what everyone seems to be accustomed to.

  React micro frontend architecture is not a new concept;rather, it is a progression of earlier architectural patterns. Disruptive innovation trends in social media, cloud computing, and the Internet of Things are heavily influencing the platform of microservice architecture to quickly penetrate the market. Thanks to the move to continuous deployment. Microservices, in the form of React micro frontend help businesses in the following ways:

                Scalability of Build-Up

                Quick Deployment

                Technology - independence

                No Insulation fault

                Efficient upgrade and migration

                Efficient upgrade and migration

                Reduced security threats and dependability

                Shortened and cheaper development time

                Appealing to engineers


________________________________________________________________________________


Building Micro Frontend with React

Let us show you a tutorial guide to building React Micro frontend. Here, we will be building two applications, namely, a host and remote; where the main application is the host, and another one will be a sub-app that we plug into it.



i)  In Your Root Directory

               

     npx create-react-app host-app

     npx create-react-app remote-app



This will create two apps for you:


             host-app/


             remote-app/



ii)  Adding Dependencies

               


Within each host-app/ and remote-app/ run:


     npm install –save-dev webpack webpack-cli html-webpack-plugin webpack-dev-server babel-loader css-loader



This will install webpack & dependencies that we need for webpack configuration.



NOTE:- Module Federation is available in version 5 and above of webpack.



After adding dependencies we can host our own app. |