To show data from a method onto a specific element
if I have an <button onClick={method}> //method method () => {<ul> {array.map(item => <li key={item}>{item}</li>)} </ul>} // app.js <div> <ul> // how should i print the method here when button is clicked </ul> </div> so how should i print this ...