下面的这些方法对我们在封装组件的时候会有很大的帮助,类型校验,类名生成,可以用到自己的项目中
/**
* prop type helpers
* help us to write less code and reduce bundle size
*/
export const numericProp = [Number, String];
export const makeBooleanProp = bool => ({
type
下面的这些方法对我们在封装组件的时候会有很大的帮助,类型校验,类名生成,可以用到自己的项目中
/**
* prop type helpers
* help us to write less code and reduce bundle size
*/
export const numericProp = [Number, String];
export const makeBooleanProp = bool => ({
type