An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

image

# 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