We code the web

Quick tip: shortId

Generating id’s, no matter the concern, it always comes in handy. Check out this little fella!

import shortid from 'shortid';
const id = shortid.generate();

console.log(id); // => AcBx2A4

Unique, url friendly id’s, short and simple :-).

npm install shortid

Github: github.com/dylang/shortid

Related posts

Handling async in Redux with Sagas

Using Redux is a nice way to code structured, testable Javascript applications. But there’s still one thing that can prove to be a challenge, asynchronous operations.

Async ... await in Javascript

We’ve all been through callback hell, maybe we use Promises and Observables to get some relief. Will async await liberate us once and for all?

Better Javascript apps by optimizing state

Client side applications hold a lot of state, some view related, some data related. But how do we make sure state is reliable and managable?