Garmaine Staff asked 2 years ago

I would like to render two itens in a even div, but this is rendered each one in a single div using the method My code is:

import React from 'react'
import {useState} from 'react'
function Home() {
const [userName, setUserName] = useState('')
const [userEmail, setUserEmail] = useState('')
const [containerArray, setContainerArray] = useState ([])

function registerUsers () {
    setContainerArray([...containerArray, userName, userEmail])

return (
        <h1>Register your users and handle them</h1>
        <div id='div1'>
        <div id='div2'>
           <div id='array-div'> {>{return  <div id='array-div2'><li>{item} 

export default Home