IS
Size: a a a
🧨
🧨
const compProps = {
data: "do some magic"
}
<Child props={compProps} />MR
🧨
ДЕ
MR
MR
🧨
MR
MR
constcompProps
= {
data: "do some magic"
}
class Hello extends React.Component {
render() {
return <div>Hello {this.props.toWhat}</div>;
}
}
React.createElement(Hello, compProps, null),
а так валидно?🧨
constcompProps
= {
data: "do some magic"
}
class Hello extends React.Component {
render() {
return <div>Hello {this.props.toWhat}</div>;
}
}
React.createElement(Hello, compProps, null),
а так валидно?🧨
🧨
MR
🧨
🧨
MR
const Content: JSX.Element =
{
text: Text,
table: Table,
images: Images,
video: Video,
}[type] || Common;🧨
const Content: JSX.Element =
{
text: Text,
table: Table,
images: Images,
video: Video,
}[type] || Common;MR