microstates icon indicating copy to clipboard operation
microstates copied to clipboard

Example: navigation tree.

Open cowboyd opened this issue 6 years ago • 0 comments

Navigation trees are fun little pieces of UI. They are less used in web applications than they are in native apps, but they still pop up from time to time.

What's important to demonstrate to microstate users though is that microstates can be recursively defined. In other words:

class Tree {
  content = Any;
  children = {Tree};
}

Is a perfectly reasonable definition for a microstate class.

  • [ ] create lo-fi mockups for what the example will look like
  • [ ] illustrate the state machine
  • [ ] implement for React
  • [ ] add to Gallery if available.

cowboyd avatar Apr 27 '18 18:04 cowboyd