UNPKG

react-app-shell

Version:

react打包脚本和example, 这里的版本请忽略

20 lines (17 loc) 472 B
// 功能方法>>>引用: import React, {Component} from 'react'; // 样式>>>引用: import styles from './landing.less'; export default class ContentImg extends Component { render() { let {mainImg} = this.props; let content = mainImg.map((item, index) => { return <img key={index} src={item}/>; }); return ( <div className={styles.contentImg}> {content} </div> ); } }