function Screen() { return <input id="calc" type="text" name="answer"></input>; } function Button() { return ( <button onClick={() => { //What to write here to append "calc"? }} > Text </button> ); } function App() { return ( <div> <Screen /> <Button /> </div> ); } export default App;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)