index.js 239 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 import React from 'react'; import styles from './index.less'; const Field = ({ label, value, ...rest }) => ( <div className={styles.field} {...rest}> <span>{label}</span> <span>{value}</span> </div> ); export default Field;