Üres Fő kép kijelző elhelyezése egy weblapon
Az adott lapon helyezze az egeret a meglévő kijelző alá vagy felé. Ekkor megjelenik egy bekarikázott + jel egy vonallal, amely így néz ki:
Válassza a +, majd a Fő kép kijelzőt.
useReducer is usually preferable to useState when you have complex state logic that involves multiple sub-values or when the next state depends on the previous one. useReducer also lets you optimize performance for components that trigger deep updates because you can pass dispatch down instead of callbacks.
If on the other hand, you have one of those “legacy” applications that has “customers” and makes “money,” and for some reason your boss is not into the idea of you spending a few weeks rewriting the whole front end in React, but you still want in on that declarative React goodness, you may have to figure out how to get React to play well with jQuery or something similar.
If jQuery is making DOM changes that React doesn’t know about, some node that gets reused might be in an unexpected state.