steffest / DPaint-js

Webbased image editor, modeled after the legendary Deluxe Paint with a focus on retro Amiga file formats: read and write Amiga icon files and IFF ILBM images
https://www.stef.be/dpaint/
MIT License
481 stars 28 forks source link

How to integrate in react project #19

Closed LiuJingQiang closed 8 months ago

steffest commented 8 months ago

Easiest way would be to export the main App object (in app.js) and import that in your react component.

Next to that, you would have to override ui.js line 19 to not append the main container to document.body, but probably to some other element that you return in the render function of your react component.

LiuJingQiang commented 8 months ago

thanks,got it. I have been integrated,copy all code into my project