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

load data to stage #797

Closed
Komodood opened this issue Mar 27, 2024 · 1 comment
Closed

load data to stage #797

Komodood opened this issue Mar 27, 2024 · 1 comment

Comments

@Komodood
Copy link

I want to implement data loading in Stage, but I can't figure out how to do it in the right way

More specifically: Konva.Stage.create() does its job perfectly, but can I use the JSX format correctly in this case?

p.s. Perhaps the answer already exists, but I don't remember where it was discussed.

@lavrton
Copy link
Member

lavrton commented Mar 28, 2024

In react-konva you should do it the same way, as you do it in regular react application. By just loading state. If you already have existing JSON's from konva, I recommend convert them into state data.

@lavrton lavrton closed this as completed Mar 28, 2024
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

2 participants