I would like to expand on the state update in the following issue
React Hooks, rerender & keeping same state - how it works underhood?
Is there a difference between the two ways of updating {count} ? Are they strictly equivalent ?
<button onClick={()=>setCount**(count+1)**} >{count}</button>
<button onClick={()=>setCount(**savedCount => savedCount+1)**}{count}</button>
Thanks in advance