Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- render() {
- return (
- <div>
- {myArray.map((e)=>(
- <button onClick={console.log("oi")}>
- </button>
- ))}
- </div>
- )}
- render() {
- return (
- <div>
- {myArray.map(e => (
- <button onClick={() => console.log("oi")} />
- ))}
- </div>
- );
- }
- render() {
- return (
- <div>
- {myArray.map((e)=>(
- <button onClick={() =>console.log("oi")}>
- </button>
- ))}
- </div>
- )}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement