As .reverse() does an in-place reverse, rather than one that returns a reversed clone of the array, we mutated the props, which is a big no-no. With cloning it before via a slice() we circumvent that and get a consistent result between client-side rendering and SSR.
CLOSES #24
As
.reverse()
does an in-place reverse, rather than one that returns a reversed clone of the array, we mutated the props, which is a big no-no. With cloning it before via aslice()
we circumvent that and get a consistent result between client-side rendering and SSR.