A simple canvas drawing and draging app using react custom hooks and native canvas api.
You can checkout the live demo
- Creat Ract App
- Canvas
- custom-hooks
Clone this repo localy and install dependencies by running
npm install
then you can spin a local server by running:
npm start
or you can directly Preview and Edit on StackBlitz ⚡️
working with the natvie canvas api is hard and you have to make a lot of calculation and state management.
- use some third party tools for canvas manipulation (gsap, react-conva etc)
- add other functionality, like import shapes/images, save canvas as image/pdf etc
- add styles