1: create controls state state = controls: { polygon: true, trash: true, }, } 2. Hide contorls when change state . onDrawCreate = () => { this.setState({ controls: { polygon: false } }); }; controls not hide in jsx.