Written by
Aaron Bell
on
on
Dave Martin's a Re-Frame master
How did Dave use Re-Frame to make Lobster Writer? He has the classic pages
function which takes the subcription to the :active-page
key of the db. This gets passed into a case
which returns another component function, which gives whatever page. Clicking buttons changes this :active-page
key, which updates the subscription, and gives a different page. Wielding reg-event-db
, reg-event-fx
, reg-fx
, reg-cofx
, and interceptors; using routing libraries like Bidi and Pushy; and working with misc libraries like React Quill, he makes a fluid and navigable SPA that works locally to streamline one’s writing of beautiful essays.