React performance tips

not exactly like this but close!