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

jsx not rendering #1444

Closed
renenadorp opened this issue Jun 8, 2024 · 2 comments
Closed

jsx not rendering #1444

renenadorp opened this issue Jun 8, 2024 · 2 comments
Labels
bug Something isn’t working

Comments

@renenadorp
Copy link

renenadorp commented Jun 8, 2024

Hi,
I'm following this example from the Framework documentation:

function Greeting({subject}) {
  return <div>Hello, <b>{subject}</b>!</div>
}

and then

display(<Greeting subject="JSX" />);

Unfortunately jsx code blocks are not executed, but are returned as code blocks:
image

Any idea what I could be doing wrong?

The complete markdown file is added here below:

test2.md

@renenadorp renenadorp added the bug Something isn’t working label Jun 8, 2024
@mbostock
Copy link
Member

mbostock commented Jun 8, 2024

This feature is marked as prerelease. Unless you are using the top-of-trunk version by cloning this repo and building Framework yourself, it won’t work. It will be released soon as version 1.9.0. Glad you’re excited to try it out!

@mbostock mbostock closed this as not planned Won't fix, can't repro, duplicate, stale Jun 8, 2024
@mbostock
Copy link
Member

Framework 1.9.0 is now released! You can create a new project as:

npm exec @observablehq/framework@latest create

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn’t working
Projects
None yet
Development

No branches or pull requests

2 participants