in React JS by
Q:

Is it possible to use React without rendering HTML?

1 Answer

0 votes
by

It is possible with latest version (>=16.2). Below are the possible options:

render() {
  return false
}
render() {
  return null
}
render() {
  return []
}
render() {
  return <React.Fragment></React.Fragment>
}
render() {
  return <></>
}

Returning undefined won't work.

Click here to read more about React JS
Click here to read more about Insurance

Related questions

0 votes
asked Oct 24, 2019 in HTML by SakshiSharma
0 votes
asked Nov 26, 2019 in React JS by AdilsonLima
0 votes
asked Jun 7, 2020 in Hive by SakshiSharma
+2 votes
asked Jan 16, 2020 in QuickTest Professional (QTP) by JackTerrance
+2 votes
asked May 31, 2020 in JAVA by SakshiSharma
0 votes
...