An open API service indexing awesome lists of open source software.

https://github.com/chantastic/myopic

A function for crafting thoughts that don't age well 🤓
https://github.com/chantastic/myopic

Last synced: about 1 year ago
JSON representation

A function for crafting thoughts that don't age well 🤓

Awesome Lists containing this project

README

          

# myopic 🤓
A function for crafting thoughts that don't age well

## usage

```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
function myopic(thingIveJustLearned, thingIveUsed) {
return `${thingIveJustLearned} replaces ${thingIveUsed}. I don't see any reason to use ${thingIveUsed} anymore.`;
}
```

## installation

### Node

```bash
npm i myopic
```

*Module*
```js
import myopic from "myopic";
```

*CommonJS*
```js
const myopic = require("myopic");
```

### Browser
```html

```