You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CacheSwitch re-mount the same component if path changes #158
Switch uses React.Children.forEach to capture the matching element, while CacheSwitch uses React.Children.map to return an array(React assigns keys to each child in the array).
Activity
nomyfan commentedon Dec 11, 2022
SwitchusesReact.Children.forEachto capture the matching element, whileCacheSwitchusesReact.Children.mapto return an array(React assigns keys to each child in the array).