microstates
microstates copied to clipboard
Example: navigation tree.
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.