dotnet / dotnet/aspnetcore

Blazor custom elements third-party embedded integration is very difficult to use.

Open
#52,754 5 comments 4 reactions 0 assignees View on GitHub
area-blazor Pillar: New Blazor
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 6h
Merged PRs (30d)
290

Description

I build a [Custom Element](https://learn.microsoft.com/en-us/aspnet/core/blazor/components/js-spa-frameworks?view=aspnetcore-7.0#blazor-custom-elements) and want to embed to my another web app like reactApp.

I always need copy "_framework" and "_content" folder to root directory "public".

It's so inelegant. I think we should be able to support all files on a separate service, through another js file to automatically download and build all the environment. Like:

public/index.html

```html


...





```

I tried to do that, but I always got an error. I looked up information on [how to initialize through js](https://github.com/dotnet/aspnetcore/issues/22220), but that doesn't seem to solve the situation?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.