Answers for "create loop to specific length react"

0

create loop to specific length react

import React, { Component } from "react";
import Select from "./Select";
import _ from "lodash";

export default class App extends Component {
  render() {
    return (
      <div className="container">
        <ol>
          {_.times(3, (i) => (
            <li key={i}>repeated 3 times</li>
          ))}
        </ol>
      </div>
    );
  }
}
Posted by: Guest on June-18-2021

Code answers related to "create loop to specific length react"

Code answers related to "Javascript"

Browse Popular Code Answers by Language