Skip to content

Commit

Permalink
docs(readme): add motivation section
Browse files Browse the repository at this point in the history
  • Loading branch information
smmoosavi committed Jan 7, 2022
1 parent 8e84d83 commit f504dea
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ connect react components with wire

<!-- toc -->

- [Motivation](#motivation)
- [Install](#install)
- [Usage](#usage)
- [`useWire` hook](#usewire-hook)
Expand All @@ -30,6 +31,17 @@ connect react components with wire

<!-- tocstop -->

## Motivation

- top-level components
- doesn't care about the value
- care about the connection between components
- detailed components
- only care about the value
- doesn't care about where the value came from or will be used
- controlled/uncontrolled components should be easy to write
- choosing the correct state location shouldn't be too hard

## Install

```bash
Expand Down

0 comments on commit f504dea

Please sign in to comment.