React ShallowRender internals

This post is tracing ReactShallowRender flow. ReactShallowRender is a "shallow" render for unit testing, which returns a "shallow" ReactElement tree. "shallow" means that it renders its ReactElement tree only one level. You can use it like this. import assert from 'assert'; import

»
Author imagekoba04
on react.js

Write a documentation React and ES6 project by ESDoc

What do you use documentation generator library? JSDoc? none? I don't used to write a documentation. Now I start using ESDoc. ESDoc https://esdoc.org/ ESDoc feature is Generates detailed document. Measures document coverage. Cross reference of test and document. Targets at ES6 class and import/export style.

»
Author imagekoba04
on react.js, esdoc

A combination of Reactjs and 6to5

In Japanese article is here. I wrote React.js code by ES6 syntax using react-tools with harmony option. Currently, I use 6to5. https://6to5.org/ It is good because 6to5 is supporting jsx. you don't need to be careful about jsx. The github repository is here. https://github.

»
Author imagekoba04
on react.js, 6to5