Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I ensure that my parcel component has appropriate type checking? #1149

Open
anoop-logcat opened this issue Sep 26, 2023 · 0 comments
Labels
how to Questions on how to use single-spa

Comments

@anoop-logcat
Copy link

`import { mountRootParcel } from "single-spa";
import Parcel from "single-spa-react/parcel";
import "./styles/global.css";

type ParcelProps = {
type: string;
};

export function Dashboard() {
return <Parcel config={() => System.import("@mife-workspace/dashboard") as any} mountParcel={mountRootParcel} />;
}
`

In the provided code, I'm using a parcel to mount my dashboard micro-frontend, and I'm seeking guidance on implementing robust type checking for my parcel component. How can I achieve this?

@MilanKovacic MilanKovacic added the how to Questions on how to use single-spa label Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
how to Questions on how to use single-spa
Projects
None yet
Development

No branches or pull requests

2 participants