Skip to content

Instantly share code, notes, and snippets.

@kaz29
Created September 26, 2017 06:30
Show Gist options
  • Save kaz29/41b76cea186f20a3d35d27164188dccd to your computer and use it in GitHub Desktop.
Save kaz29/41b76cea186f20a3d35d27164188dccd to your computer and use it in GitHub Desktop.
サンプル
import React from 'react'
import { Link } from 'react-router'
class AreaComponent extends React.Component {
constructor(props) {
super(props)
}
render() {
const { area } = this.props
return (
<span>
<dt>{area.name}</dt>
{
area.bases.map((base, index) => (
<dd><Link to="#">{base.name}</Link></dd>
))
}
</span>
)
}
}
export default AreaComponent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment