Add example for lifecycle of react component.
Change paths of third-party library from CDN.
Remove commented code.