MENU

My first `Recoil` experience

0
587
0

I was a Redux fan, and until now, I thought that I could not make any app without it.

Of course, there were various kind of state management libraries in JavaScript history, but Redux was the one of bests obviously.

Today, I found Recoil by chance, and felt a fresh that could not be told explicitly.

Anyway, with a bunch of questions behind, I wrote the first Recoil app.

React.js - 17.0.2
Recoil - 0.1.3

Since React.js 17.0.2, you don’t need to import React explicitly. Amazing!

I recommend to write key by key instead of copy and paste, when trying to learn something.

Please pay attention to the comments – // @ RECOIL: XXXXX

Still I got questions, such as how to make network request and handle the response?

I will keep investigating.

You can download the full source code here.

https://github.com/maAPPsDEV/recoil-tutorial

Thanks!

Sorry, the comment form is closed at this time.