mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 20:30:33 +00:00
11 lines
250 B
JavaScript
11 lines
250 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
|
|
const For = ({render, of}) => of.map((item, index) => render(item, index));
|
|
|
|
For.propTypes = {
|
|
of: PropTypes.array.isRequired,
|
|
render: PropTypes.func.isRequired
|
|
};
|
|
|
|
export default For; |