React Live Code Demo Credits Most of the idea brings from https://github.com/FormidableLabs/react-live, but simplified for my own use.