index.js 728 Bytes
Newer Older
zhanghaozhe committed
1 2 3 4 5
import React, { Component } from 'react';
import './index.scss'

class Selection extends Component {
  state = {
zhanghaozhe committed
6
    screenshots: ['https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/exercise_1.png', 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/exercise_2.png', 'https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/mlCourse/m/exercise_3.png']
zhanghaozhe committed
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
  }

  render() {
    return (
      <div id={'selection'}>
        <h2> /  /  / </h2>
        <ul>
          {
            this.state.screenshots.map((item, i) => {
              return <li key={i}>
                <img src={item} alt=""/>
              </li>
            })
          }
        </ul>
      </div>
    );
  }
}

export default Selection;