Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

UI Components

Yoshua Wuyts edited this page May 30, 2017 · 1 revision

Dat Desktop uses the choo framework for its UI. Choo was chosen because of its small footprint, friendly API and great flexibility. Under the hood it uses regular DOM nodes and a "DOM diffing" technique to allow for efficient updating of the DOM.


Components

In order to create reusable, stateful elements we've started using a package called microcomponent. This package is built on top of nanocomponent which we've been using for a while longer. Microcomponent provides elements on the page with a private notion of state, allows caching elements to prevent needless re-rendering, and adds neat debugging features that come in handy when dealing with large amounts of elements.

Clone this wiki locally