Khang Hoang

Khang Hoang

Passionate NodeJS/iOS developer

Featured

How to test Container in ReactJS

In this post, I will show you a way to test Container.

TL’DR: what is Container?

Container is the place that you handle the logic for displaying, such as fetching, manipulating data, etc… then render the “pure” Component
Latest

Enable Syntastic flowtype in Vim

Flowtype is a static type checker for javascript backed by Facebook. And this is how I use it with Vim (and make it compatible with eslint)

First you need to install `flow-bin` from npm

npm install -global flow-bin

Using ESLint with Vim

Vim is my favorite editor so I wanna code everything with it. And this was how I enabled eslint in my Vim.

Oh, I forgot to mention that I use this as my .dotfiles https://github.com/skwp/dotfiles

Setup babel to use `import` and `export` on NodeJS

Why?

In some cases, we need to use isomorphic code that are shared between client and side server, in this case is react and nodejs.