RRREACT REPEAT

React Repeat

Repeat elements / components to fill you need it.

The most easy way to repeat and fill with elements or React components.
GitHub
npm install react-repeat

You can pass the elements that you wanna repeat inside of the component, pass the number of repetitions with prop size:

  • 🍌
  • 🍌
  • 🍌
  • 🍌
  • 🍌
  • 🍌
  • You can pass diferent elements:

  • 🍌
  • 🍓
  • 🍌
  • 🍓
  • 🍌
  • 🍓
  • If you pass an odd number on ``size`` prop, the items will be repeated until to fill the length that you need it.

  • 🍌
  • 🍓
  • 🍏
  • 🍌
  • 🍓
  • You can pass ``shuffle`` prop and the output elements will be randomized, only will calculated on first render.

    You can pass any item not only HTML elements, example with React Components:

    The props will be passed automatically on every clone component: