tahacankurt
Follow
Pinned Loading
-
Next.js Get Initial Props
Next.js Get Initial Props 1Articles.getInitialProps = async function() {
2const apiPath = "https://newsapi.org/v2/";
3const res = await fetch(`${apiPath}everything?q=bitcoin&from=2019-11-02&sortBy=publishedAt&apiKey=<ApiKey>`);
4const data = await res.json();
5 -
Personal Javascript Cheat Sheet
Personal Javascript Cheat Sheet 1// Execution Context / Lecxical Enviroment / Closures
2function sum(a){
3//Returns an Anonymous function
4return (b) => a+b;
5}
-
-
You-Dont-Know-JS
You-Dont-Know-JS PublicForked from getify/You-Dont-Know-JS
A book series on JavaScript. @YDKJS on twitter.
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.