README of starter
If you are here for the starter click above link
If you are here for the component library, this is it
Example Component: react-render-counter
RenderCounter is a tool component can be used in dev environment. It can tell you how many times each part of your component has been rendered.
This is composed with a HOC and a pure component to count render times
HOC is also useful when you want to track render times for your component.
yarn add --dev react-render-counter
npm install --save-dev react-render-counter
;<AnyComponent><RenderCounter initialCount=0 /></AnyComponent>
withRenderCount- High order component to provide data and logic
;const MyCounter = <div>count + 1</div>;MyCounter;
Counter- Pure component to render count
;<div><Counter count=1 /></div>
hocs- Some handy higher-order components.
// MyComponent.js;const MyComponent = <div />;MyComponent;
With storybook, things below are included in the site:
- online demo
- prop tables
- code examples
- TODO: comments