A website developer and node.js developer
I want to record some packages of the node.js I use and share to the people. If you want to share some packages, let me know and I will add to this article.
If you have question about the different between REST and GraphQL, you can see RESTful APIs vs GraphQL APIs by Example. On the other hand, you can also see Thinking in GraphQL in relay.
Problem about document.body.scrollTop
If you need to get document.body.scrollTop in website. You should use this:
const scrollTop = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;