在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/HTML/ react接口定義方法

react接口定義方法

export interface ProviderProps {
    /**
     * The single Redux store in your application.
     */
     
     //這個接口定義是什么意思
    store?: Store<any>;
    children?: ReactNode;
}
回答
編輯回答
陌如玉

store是可有可無的,類型為Store

2018年8月22日 20:11
編輯回答
萌吟
export interface ProviderProps {
    /**
     * The single Redux store in your application.
     */
     
     //這個接口定義是什么意思
    store?: Store<any>;
    children?: ReactNode;
}

ProviderProps是typescript 定義數(shù)據(jù)類型的接口
Store<any> <>的含義是告訴typescript 不用檢測,由編程員自己來檢查,any表示任意值
ReactNode表示的是react元素

2017年3月7日 13:36