npx create-react-app react-lifecycle-methods
cd react-lifecycle-methods
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function outter () { | |
return function(wordToPrint) { | |
console.log('outter()(wordToPrint) -->', wordToPrint) | |
} | |
} | |
// Invoke `outter` and save returned value (function) in a variable | |
const inner = outter(); | |
inner('Hello'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Semantic HTML</title> | |
<meta charset="UTF-8" /> | |
</head> | |
<body> | |
<nav> | |
<a href="">Home</a> |