-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Addon-docs: Move DocsRenderer back to addon-docs #18708
Addon-docs: Move DocsRenderer back to addon-docs #18708
Conversation
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 3ff9b31. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch ✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
const toJSXString = | ||
typeof reactElementToJSXString === 'function' | ||
? reactElementToJSXString | ||
: // @ts-ignore | ||
reactElementToJSXString.default; | ||
let string = applyBeforeRender(toJSXString(child, opts as Options), options); |
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.
I had to make this change to deal with an inconsistency in react-element-to-jsx-string
's exports in different build contexts. I'd suggest we should fix that upstream (also maybe we should maintain that package?)
It shouldn't be necessary as a different `React` instance renders the user's component.
7d6f3d9
to
59a2892
Compare
@shilman we might need to discuss these |
Add |
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.
LGTM except for my comment
What I did
Refactored
lib/blocks
to remove dependencies and improved external docs so it uses theme.How to test
Run
react-ts
and theexternal-docs
app