File tree Expand file tree Collapse file tree 1 file changed +11
-14
lines changed
@plotly/dash-generator-test-component-typescript/src/components Expand file tree Collapse file tree 1 file changed +11
-14
lines changed Original file line number Diff line number Diff line change @@ -4,20 +4,17 @@ import {TypescriptComponentProps} from '../props';
4
4
/**
5
5
* Component docstring
6
6
*/
7
- const TypeScriptComponent = ( props : TypescriptComponentProps ) => {
8
- const { required_string, id} = props ;
9
- return < div id = { id } > { required_string } </ div > ;
10
- } ;
11
-
12
- TypeScriptComponent . defaultProps = {
13
- string_default : 'default' ,
14
- number_default : 42 ,
15
- bool_default : true ,
16
- null_default : null ,
17
- obj_default : {
18
- a : 'a' ,
19
- b : 3
20
- }
7
+ const TypeScriptComponent = ( {
8
+ required_string,
9
+ id,
10
+ string_default = 'default' ,
11
+ number_default = 42 ,
12
+ bool_default = true ,
13
+ null_default = null ,
14
+ obj_default = { a : 'a' , b : 3 } ,
15
+ ...props
16
+ } : TypescriptComponentProps ) => {
17
+ return < div id = { id } > { required_string } </ div > ;
21
18
} ;
22
19
23
20
export default TypeScriptComponent ;
You can’t perform that action at this time.
0 commit comments