index.js 386 Bytes
Newer Older
zhanghaozhe committed
1 2
import React from "react"
import "./course-base.scss"
3 4

const Course = (props) => {
zhanghaozhe committed
5 6 7 8 9 10 11 12 13 14 15 16
  return (
    <li
      className={`course-base-item ${props.className}`}
      onClick={props.handleClick.bind(this, props.id)}
    >
      {props.top}
      <img src={props.img} alt="" />
      <p className="course-title">{props.title}</p>
      {props.bottom}
    </li>
  )
}
17

zhanghaozhe committed
18
export default Course