且要在react上面使用 .env, 变量名称前面需要加 REACT_APP_ 使用的时候,不用require('dotenv').config。当然最重要的,别忘记安装dotenv
此刻读着这个帖子就是感恩。https://blog.logrocket.com/patterns-for-data-fetching-in-react-981ced7e5c56/
如果不是因为工作,永远都不会静下心来思考这些blog
#1. 一个经验: try to start with mock-up. Let's say you want to implement some complex functionalities in your own app, firstly search on Google, find others Github, clone their codes, play with an existing project, use the placeholder, or simplify the problem you met. There was once a time I want to fetch the data from 3rd party API and load the data in my browser, I finally succeed by 1)Generate static data in the js file, try to load the data on the browser; 2) Use placeholder JSONPlaceholder API to connect with API, and load the data fetching remotely; 3) Use my own API and compare and succeed!
#90天内必须要上岸
好难受。除了每天尽力投入学习,人生受我控制的事情已经不多了。当经济,住宿,工作,都是未知数的状态时,整个人都好像溺水一样。但我知道这并不是我人生最黑暗的时间。因为我有退路。因为我有家人。可是我不能放纵自己去想那条退路。我,要在接下来90天内,找到工作。今天是第一天。
Maybe I have no idea, but I already lived the life I have dreamed a lot in the last year. I coded everyday, solve bugs every day. Not sure whether this is exactly the thing I want. But I am still able to do it, which means this is still the thing I am willing to do. I should cheer myself up for achieving my dreams.
做好小事