Basic Canvas editor based on web technologies with dark mode support.
The website is deployed on Vercel.
Website: https://react-fabric-app.vercel.app
- Clone the repository
git clone https://github.com/Hasmik-Mejlumyan/react-fabric-app
- Install the dependencies
yarn
*Note: Ensure you are using Node.js v22.14.0 for better and stable experience.
- Run the project
yarn dev
- For checking and fixing code style run eslint commands accordingly
yarn lint # For checking
yarn lint:fix # For fixing
Simple techniques were used for performance optimization such as
- Lazy loading for bigger components (we don't have many, that's why I imported my global Canvas element 🙂)
- Used Fabric.js library, instead of Canvas API with
requestAnimationFrame
- Used React Context API instead of prop drilling
A basic template was used only for checking PRs, specifically lints and build check.
The deployment part was taken care of by Vercel.
PR Check consists of the following jobs.
- lint - which check linters in a few steps
- build - which checks if the app builds properly in a few steps