Created
October 13, 2020 19:14
-
-
Save ljmotta/edd1486e91d1293f7632a320df1bb715 to your computer and use it in GitHub Desktop.
Base64Png Editor Initial Render
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const Base64PngEditor = React.forwardRef<EditorApi, Props>((props, forwardedRef) => { | |
// ... | |
return ( | |
<div className={"base64png-editor--viewport"}> | |
<img | |
ref={imageRef} | |
className={"base64png-editor--image"} | |
src={`data:image/png;base64,${originalContent}`} | |
alt={"Original"} | |
/> | |
<canvas | |
ref={canvasRef} | |
className={"base64png-editor--canvas"} | |
/> | |
</div> | |
) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment