https://codesandbox.io/s/wizardly-nightingale-449cko
click the 2nd div
click the 3rd div
console doesn't output as expected:
render ts: 1646305500814
onclick ts: 0
render process has already done, but the function onClick in "App.js" still get the old value. why it happen?
click the 2nd div
click the 1st div
console output as expected:
render ts: 1646305752895
onclick ts: 1646305752895
console also output as expected:
render ts: 1646306154833
onclick ts: 1646306154833
In theory, the effect of the function "this.cellRenderer" and "renderItem" should be the same;