import * as React from "react" ; interface CategoryProps { label : string ; } interface CategoryStates { visible : boolean ; } export default class Category extends React . Component < CategoryProps , CategoryStates > { public render ( ) { return ( < fieldset className = "optioncategory" > < legend > { this . props . label } < /legend> < div className = "category-content" > { this . props . children } < /div> < /fieldset>); } }