Let's simplify the example to see why. Even if we set the value for showSidebar directly, the Child still re-renders. That's because the options ...
確定! 回上一頁