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 to support a new Framework? #95
Comments
Hey @TechQuery - thanks for the question! We are actually in the process of making this easier and having documentation for how to do it yourself. In short, using our HTML API is the easiest way, e.g. fetch(
`https://cdn.builder.io/api/v1/html/${modelName}?url=${encodeURIComponent(location.href)}&apiKey=${apiKey}`
)
.then(res => res.json())
.then(content => {
if (content) {
element.innerHTML = content.data.html
} else {
// trigger some kind of "not found" callback
}
}) Where you might take
Happy to answer questions anytime you get stuck and follow up with the full integration docs when available And we have a more advanced example coming in the next few weeks on how to do a deeper integration that involves rendering all of the content in your framework components and using your components in the editor |
Going to leave this open for now until we have our easier way to add full framework support coming up |
Such as WebCell (a new framework based on TSX & Web Components)
The text was updated successfully, but these errors were encountered: