https://github.com/objarni/react-cad-experiment
An experiment in following the Calculations-Data-Actions in a 2d drawing app
https://github.com/objarni/react-cad-experiment
Last synced: 12 months ago
JSON representation
An experiment in following the Calculations-Data-Actions in a 2d drawing app
- Host: GitHub
- URL: https://github.com/objarni/react-cad-experiment
- Owner: objarni
- License: mit
- Created: 2023-04-26T14:52:27.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-26T15:06:39.000Z (about 3 years ago)
- Last Synced: 2025-03-31T07:15:43.577Z (about 1 year ago)
- Language: TypeScript
- Size: 173 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# React Calculations-Data-Actions Experiment
This little 2D drawing application is the result of some frustration with React and (unit) testing applications built in it.
It uses the ideas from the book "Grokking Simplicity" to extract all interesting behaviour / logic / business rules / pick-your-fancy-word into pure functions (called calculations in the book) which are called from 'shallow'/'skeletonal' actions in the UI code (the React code).
It's written in typescript.
Use mouse left-clicks to draw rectangles on canvas!
# setup app
npm install
# run app
npm start
# run tests
npm test