locked
a quick props questions (sort of) RRS feed

  • Question

  • User1034446946 posted

    Hi

    I am building react components and sometimes not all the props are required, and since props is an object all works well.

    however when i am building hooks, i have a situation where i don't need all the arguments all the time, is the solution to pass in an object instead, and deconstruct it?

    Saturday, November 16, 2019 2:14 PM

All replies