import React from 'react'; import * as BS from 'react-bootstrap'; import { bindActionCreators } from 'redux'; import Actions from 'vanth/actions/root'; module.exports = React.createClass({ getInitialState() { return { name : null, password : null, username : null, } }, handleChange: function(parameter) { return (e) => { this.setState({ [parameter] : e.target.value }); } }, handleSubmit: function(e) { e.preventDefault(); Actions.User.register( this.state.name, this.state.username, this.state.password, this.props.url.search.nextPath || "/" ).then(result => { Actions.Session.get(); Actions.URL.navigate('/'); }).catch(error => { console.error(error); }); }, render: function() { const pending = false; return (

Vanth - register a new user


Name Username Password Register Login
); } });