11 lines
186 B
JavaScript
11 lines
186 B
JavaScript
|
function Component(props) {
|
||
|
return () => {
|
||
|
let str;
|
||
|
if (arguments.length) {
|
||
|
str = arguments[0];
|
||
|
} else {
|
||
|
str = props.str;
|
||
|
}
|
||
|
str |> global.log(%);
|
||
|
};
|
||
|
}
|