• Home
  • Recent Q&A
  • Java
  • Cloud
  • JavaScript
  • Python
  • SQL
  • PHP
  • HTML
  • C++
  • Data Science
  • DBMS
  • Devops
  • Hadoop
  • Machine Learning
in React JS by
Q:
Do Hooks replace render props and higher order components?

1 Answer

0 votes
by

Both render props and higher-order components render only a single child but in most of the cases Hooks are a simpler way to serve this by reducing nesting in your tree.

Related questions

0 votes
asked Nov 26, 2019 in React JS by AdilsonLima
0 votes
asked Jul 2, 2019 in React JS by Venkatshastri
...