export interface ProviderProps {
/**
* The single Redux store in your application.
*/
//这个接口定义是什么意思
store?: Store<any>;
children?: ReactNode;
}
export interface ProviderProps {
/**
* The single Redux store in your application.
*/
//这个接口定义是什么意思
store?: Store<any>;
children?: ReactNode;
}
export interface ProviderProps {
/**
* The single Redux store in your application.
*/
//这个接口定义是什么意思
store?: Store<any>;
children?: ReactNode;
}
ProviderProps是typescript 定义数据类型的接口
Store<any> <>的含义是告诉typescript 不用检测,由编程员自己来检查,any表示任意值
ReactNode表示的是react元素
1 回答1.7k 阅读✓ 已解决
4 回答1.7k 阅读✓ 已解决
2 回答2.5k 阅读✓ 已解决
1 回答2.6k 阅读✓ 已解决
2 回答1.6k 阅读✓ 已解决
4 回答1.4k 阅读
1 回答1.6k 阅读✓ 已解决
store是可有可无的,类型为Store