Closed
Description
I'm getting the Cannot read property 'makeHref' of undefined
error when I'm trying to render the <Link />
component. My component which is rendering the <Link />
component:
import { Router, Link } from 'react-router';
class RoomList extends React.Component {
constructor(props) {
super(props);
}
render() {
var roomNodes = this.props.rooms.map(function(room) {
return (
<div key={room.id} className="room-item">
<Link to='room' params={{ id: room.id }}>{room.name}</Link>
</div>
);
});
return (<div className="room-list">{roomNodes}</div>);
}
}
export default RoomList;
Any ideas what could be causing this?
Metadata
Metadata
Assignees
Labels
No labels