This repository has been archived by the owner on Jun 10, 2020. It is now read-only.
Use cached children counts
This update improves performance slightly by using a cached version of the number of children rather than using React.children
to count the number of children each time.