import React from 'react'; import { Plugin } from '../../model/'; import './plugin.scss'; const PluginBox = (props) => { return (
{props.name}
{props.description}
); }; export class PluginPage extends React.Component { constructor(props){ super(props); this.state = { plugins: [] }; } componentWillMount(){ Plugin.all().then((list) => this.setState({plugins: list})); } render(){ return (

Plugins

{ this.state.plugins.map((plugin, index) => { return ( ); }) }
); } }