News for hackers. Stuff that matters.
Re:N-Params vs. Single Param by vbezhenar on Friday April 18, 2025 @11:20AM (#43728892)
For some reason React prefers to return arrays. I never understood the reason.

  const [state, setState] = useState(initialState)
instead of

  const {state, setState} = useState(initialState)

There are no comments on this comment yet.