1 import { Component } from 'inferno';
2 import { CommunityForm } from './community-form';
4 export class CreateCommunity extends Component<any, any> {
6 constructor(props: any, context: any) {
8 this.handleCommunityCreate = this.handleCommunityCreate.bind(this);
13 <div class="container">
15 <div class="col-12 col-lg-6 mb-4">
17 <CommunityForm onCreate={this.handleCommunityCreate}/>
24 handleCommunityCreate(id: number) {
25 this.props.history.push(`/community/${id}`);