This example uses Recoil and Typescript for a simple stage magament with Recoil. Just a basic todo list.
Clone the repository & install dependencies:
$ git clone https://github.com/pmagaz/recoil-typescript
$ yarn / npm install
This example was created using create-react-app so you can run web server as follows:
$ yarn start
state.ts
Definition of the stage. Just an Array of todos.NewTodo.tsx
Add a new todo to the state.TodoList.tsx
List of todos.NumTodos.tsx
Count active todos.
Recoil API is still in early stages. DON'T use it in production.