React return 'null' vs return 'false'. Which is better and why?

Archana Sharma - Jun 7 - - Dev Community

I have read some articles about stopping using the return 'null' as well as using 'null' over 'false'. Please tell me what we can use and why. Also, their importance and usage.

I have followed two articles and both support different things. But how does React work in both cases, please explain in detail.

stop using null

supporting return null

Please suggest.

. .