📜  ts useSelector types react - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:26.253000             🧑  作者: Mango

代码示例1
import { RootState } from 'app/redux/store';
const isLoggedIn = useSelector(state: RootState => state.user.loggedIn);