3 ms·
I don't get the example code. It is possible to write even simpler code in React than it is showed in the documentation. const ButtonWidget = ({name}) => (<but
by kvczor 8y ago
I don't get the example code. It is possible to write even simpler code in React than it is showed in the documentation.
const ButtonWidget = ({name}) => (<button onClick={() => showModal(name)}>Show {name} Modal</button>);