React interface definition method

export interface ProviderProps {
    /**
     * The single Redux store in your application.
     */
     
     //
    store?: Store<any>;
    children?: ReactNode;
}
Mar.02,2021

store is optional and the type is Store


export interface ProviderProps {
    /**
     * The single Redux store in your application.
     */
     
     //
    store?: Store<any>;
    children?: ReactNode;
}

ProviderProps is the interface for typescript to define data types
Store < > means to tell typescript not to detect, but to be checked by the programmer himself, and any indicates any value
ReactNode represents the react element

.
Menu