这是 layout.tsx(持久外壳)。在输入框打字,再点下面链接切换子路由,看输入内容是否保留:
layout.tsx
当前路径:/lab/routing/layout-state/one
下面是 page(每次切换会替换):
这是 page one,切换时这个节点会被替换。