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 logging no longer works in react 19 #17223

Open
extrasalt opened this issue Feb 10, 2025 · 0 comments
Open

JSX logging no longer works in react 19 #17223

extrasalt opened this issue Feb 10, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@extrasalt
Copy link

extrasalt commented Feb 10, 2025

What version of Bun is running?

1.2.3-canary.51+ba8573494

What platform is your computer?

Darwin 24.2.0 arm64 arm

What steps can reproduce the bug?

index.tsx

const element = <h1>Hello, world!</h1>;
console.log(element);

What is the expected behavior?

according to https://bun.sh/docs/runtime/jsx#logging

Should log:

<h1>Hello, world!</h1>

What do you see instead?

logs

{
  $$typeof: Symbol(react.transitional.element),
  type: "h1",
  key: null,
  props: {
    children: "Hello, world!",
  },
  _owner: null,
  ref: null,
  _store: {
    validated: 0,
  },
  _debugInfo: null,
}

Additional information

No response

@extrasalt extrasalt added bug Something isn't working needs triage labels Feb 10, 2025
@paperclover paperclover changed the title JSX logging no longer works JSX logging no longer works in react 19 Feb 11, 2025
@paperclover paperclover self-assigned this Feb 11, 2025
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