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

a bug #521

Open
john012343210 opened this issue Jun 16, 2024 · 0 comments
Open

a bug #521

john012343210 opened this issue Jun 16, 2024 · 0 comments

Comments

@john012343210
Copy link

john012343210 commented Jun 16, 2024

this is the old code I use, and the component works well.

import ReactDOM from 'react-dom'
ReactDom.render(<h1>Your App</h1>, document.getElementById('root'))

however, when I switch to new syntax of the React, when the force graph component renders the first time, only have a background color , the node and links will not show until the component is rerendered


import { createRoot } from 'react-dom/client'
createRoot(document.getElementById('root')).render(<h1>Your App</h1>)
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

No branches or pull requests

1 participant