
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@appshell/react-federated-component
Advanced tools
React utilites for dynamically loading federated components for Webpack Module federation micro-frontends.
Working examples can be found here.
To begin, you'll need to install @appshell/react-federated-component:
npm install @appshell/react-federated-component --save-dev
or
yarn add -D @appshell/react-federated-component
or
pnpm add -D @appshell/react-federated-component
React component that dynamically loads federated components.
import { FederatedComponent, ManifestProvider } from '@appshell/react-federated-component';
<App>
<ManifestProvider manifest={manifest}>
<FederatedComponent remote="PingModule/Ping">
<FederatedComponent remote="PongModule/Pong">
</ManifestProvider>
</App>
For access to the manifest.
import { ManifestProvider, useManifest } from '@appshell/react-federated-component';
const MyComponent = () => {
const manifest = useManifest();
...
}
<ManifestProvider manifest={manifest}>
<MyComponent />
</ManifestProvider>
Helper function for loading json resources in React Suspense components.
import { jsonResource } from '@appshell/react-federated-component';
const resource = jsonResource('http://test.com/appshell.manifest.json');
const MyComponent = () => {
const value = resource.read();
if (!value) {
return null;
}
if (isError(value)) {
return <ErrorMessage message={`${value}`} />;
}
return <div>my component</div>;
};
<React.Suspense fallback="Loading...">
<MyComponent />
</React.Suspense>;
Where does the manifest come from?
See @appshell/cli
appshell generate manifest --configsDir appshell_configs
FAQs
React utilities for loading federated components
We found that @appshell/react-federated-component demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.