Artificial intelligent assistant

React で prop 受け渡しの shorthand はありますか? Component extra props const HogeComponent = props => <Component {...props} extra='hoge' /> const HogeComponent = Component.bind({ extra: 'hoge' })

High-Order Component(HoC)Factory Method




import React from "react";

const Comment = props => {
return (



{props.name}


{props.message}



);
};

const createComponent = init => props => ;

export default function App() {
const HogeComponent = createComponent({ name: "hoge" }); // hoge
const FugaComponent = createComponent({ name: "fuga" }); // fuga
return (
<>





);
}


1Single Page Application

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 4d397c24e35cdab71cd6b665de833369