-
Notifications
You must be signed in to change notification settings - Fork 368
feat(api-reference): render specification extensions with React #5479
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
Conversation
🦋 Changeset detectedLatest commit: 430dacb The changes in this PR will be included in the next version bump. This PR includes changesets to release 27 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
#9739 Bundle Size — 2.45MiB (~+0.01%).430dacb(current) vs ac16fca main#9737(baseline) Warning Bundle contains 6 duplicate packages – View duplicate packages Bundle metrics
Bundle analysis report Branch feat/react-rendering Project dashboard Generated by RelativeCI Documentation Report issue |
44968f3
to
15c79cb
Compare
6de7e4e
to
2ac3d62
Compare
da7f210
to
c2f7320
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AWESOME work @hanspagel 🤯
tested and this is incredible, lets get it merged
c2f7320
to
72b8573
Compare
@@ -0,0 +1,32 @@ | |||
import type { ComponentType } from 'react' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
back to classes? why not functional component?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Insane! Code looks good except the class based component (old school) and the additional dependencies. Still approving anyway
72b8573
to
430dacb
Compare
Problem
Currently, we support to register custom Vue components to render specification extensions. But what about React? 😰
Solution
With this PR we’re introducing a new React renderer, that you can use to render custom React components for your specification extensions. 🤯
Usage
Install the React renderer (a Vue component to mount React components):
Register the React component and the React renderer:
Preview
Checklist
I’ve gone through the following:
pnpm changeset
).