I am using react to get the term by id, but the problems is that I am not able to get any child term under the term.For example:
-IT
--software
--hardware
IT is term not termSet.
taxonomy.getDefaultSiteCollectionTermStore() .getTermById(this.props.top) .get().then( Alltop=>{ console.log(Alltop) this.setState({terms:Alltop}) } );
for termSet I am able to get all terms using taxonomy.getDefaultSiteCollectionTermStore() .getTermSetById(this.props.terSetId).terms .get()