Type '{}' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes

后端 未结 7 2978
梦如初夏
梦如初夏 2020-12-15 02:42

i am currently making a simple react application. this is my index.tsx

import * as React from \'react\';
import * as ReactDOM from \'react-dom\         


        
7条回答
  •  情歌与酒
    2020-12-15 02:58

    I'm not really proud of that but, considering other solutions in this thread, it seems fair enough.

    This example shows a custom version of @react-native-community/slider with some default properties but able to receive (and overwrite) from outside:

    function CustomSlider(props: SliderProps) {
      return (
        
      );
    }
    

提交回复
热议问题