Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
サンプル
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
You can’t perform that action at this time.