A function for crafting thoughts that don't age well
npm install myopic``js
myopic("The render prop pattern", "cloneElement")
// => "The render prop pattern replaces cloneElement. I don't see any reason to use cloneElement anymore."
myopic("The new Context API", "Redux")
// => "The new Context API replaces Redux. I don't see any reason to use Redux anymore."
`
Here's the code that powers it:
`js${thingIveJustLearned} replaces ${thingIveUsed}. I don't see any reason to use ${thingIveUsed} anymore.
function myopic(thingIveJustLearned, thingIveUsed) {
return ;`
}
`bash`
npm i myopic
Module
`js`
import myopic from "myopic";
CommonJS
`js`
const myopic = require("myopic");
html
``