<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: GuyLearningReact</title>
    <description>The latest articles on DEV Community by GuyLearningReact (@mallikg2k).</description>
    <link>https://dev.to/mallikg2k</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F815407%2F15ed04f2-e5ed-49b0-8991-d9899fbf8828.png</url>
      <title>DEV Community: GuyLearningReact</title>
      <link>https://dev.to/mallikg2k</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mallikg2k"/>
    <language>en</language>
    <item>
      <title>Sharing context across Microfrontends</title>
      <dc:creator>GuyLearningReact</dc:creator>
      <pubDate>Fri, 18 Mar 2022 19:04:09 +0000</pubDate>
      <link>https://dev.to/mallikg2k/sharing-context-between-microfrontends-1abj</link>
      <guid>https://dev.to/mallikg2k/sharing-context-between-microfrontends-1abj</guid>
      <description>&lt;p&gt;TLDR; How to pass Context to Microfrontends?&lt;br&gt;
The application is divided into multiple Microfrontends or react apps. Each of this is running in a different port. &lt;br&gt;
Container is hosting other Micrfrontends. &lt;br&gt;
Each one is a separate react app and it is a runtime integration. &lt;/p&gt;

&lt;p&gt;Currently passing some parameters via URL to other Microfrontends. &lt;/p&gt;

&lt;p&gt;Need to pass the data across these react apps (MFEs) using React Context.&lt;/p&gt;

&lt;p&gt;Defined ReactContext Provider in Container (ReactApp1) and stored value (say color=black).&lt;/p&gt;

&lt;p&gt;To access this color inside the lower level Microfrontend (ReactApp2) we need the context to be available. How to make it available?&lt;/p&gt;



</description>
      <category>context</category>
      <category>mfe</category>
      <category>state</category>
      <category>props</category>
    </item>
    <item>
      <title>ScriptExternalLoadError Loading script failed </title>
      <dc:creator>GuyLearningReact</dc:creator>
      <pubDate>Tue, 15 Feb 2022 00:13:53 +0000</pubDate>
      <link>https://dev.to/mallikg2k/scriptexternalloaderror-loading-script-failed-l8p</link>
      <guid>https://dev.to/mallikg2k/scriptexternalloaderror-loading-script-failed-l8p</guid>
      <description>&lt;p&gt;Hello Experts, &lt;/p&gt;

&lt;p&gt;Please help!&lt;/p&gt;

&lt;p&gt;This is regarding webpack Module Federation question.&lt;br&gt;
Created 2 react apps (remote and host) using npx create-mf-app&lt;/p&gt;

&lt;p&gt;Rendered Simple Hello in react app1. &lt;/p&gt;

&lt;p&gt;Adjusted webpack config files in both react apps.&lt;/p&gt;

&lt;p&gt;Works great in one machine. Did the same in other machine and it throws errors:&lt;br&gt;
Uncaught ScriptExternalLoadError: Loading script failed.&lt;br&gt;
(missing: &lt;a href="http://localhost:8081/remoteEntry.js"&gt;http://localhost:8081/remoteEntry.js&lt;/a&gt;)&lt;br&gt;
while loading "./Counter" from webpack/container/reference/remote..&lt;/p&gt;

&lt;p&gt;Any help greatly appreciated!&lt;/p&gt;

</description>
      <category>modulefederation</category>
      <category>webpack</category>
      <category>react</category>
    </item>
  </channel>
</rss>
