mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 12:41:54 +03:00
15 lines
577 B
JavaScript
15 lines
577 B
JavaScript
function VerticalNavMenuItem(prop) {
|
|
return(/*#__PURE__*/ React.createElement("div", null, "props.primaryText"));
|
|
}
|
|
function VerticalNav() {
|
|
return(/*#__PURE__*/ React.createElement("div", null, /*#__PURE__*/ React.createElement(VerticalNavMenuItem, {
|
|
primaryText: 2
|
|
}), " // error", /*#__PURE__*/ React.createElement(VerticalNavMenuItem, {
|
|
justRandomProp: 2,
|
|
primaryText: "hello"
|
|
}), " // ok", /*#__PURE__*/ React.createElement(VerticalNavMenuItem, {
|
|
justRandomProp1: true,
|
|
primaryText: "hello"
|
|
}), " // error"));
|
|
}
|