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

Explicitly show that JSX display() must be in a jsx fenced code block #1530

Merged
merged 2 commits into from
Jul 24, 2024

Conversation

juba
Copy link
Contributor

@juba juba commented Jul 23, 2024

I spent some time trying to understand why the simpler JSX example wasn't working in my project. It finally turned out that I was putting the display(<Greeting subject="JSX" />) in a js block instead of a jsx one.

I saw after that jsx is indicated in the right margin of the code block in the documentation, but I didn't notice at first. As I may not be the only one in this case, this PR explicitly shows the jsx fenced code block around the first JSX display().

Many thanks for all your work on Observable framework.

@mbostock mbostock enabled auto-merge (squash) July 24, 2024 00:36
@mbostock mbostock merged commit 260f8f1 into observablehq:main Jul 24, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants