Created
September 26, 2017 06:30
-
-
Save kaz29/41b76cea186f20a3d35d27164188dccd to your computer and use it in GitHub Desktop.
サンプル
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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