import React, { PureComponent } from 'react'; import { Link } from 'react-router'; import { Grid, Cell } from 'react-mdl'; class ClientStrategies extends PureComponent { componentDidMount () { this.props.fetchApplication(this.props.appName); } render () { if (!this.props.application) { return
Loading application info...
; } const { appName, instances, strategies, seenToggles, } = this.props.application; return (
{appName}
Instances
    {instances.map(({ instanceId }, i) =>
  1. {instanceId}
  2. )}
Implemented strategies
    {strategies.map((name, i) => (
  1. {name}
  2. ))}
Toggles
    {seenToggles.map((name, i) =>
  1. {name}
  2. )}
); } } export default ClientStrategies;