import ReactDOM from "react-dom/client";
import React from "react";



export function App(){
console.log(React.useState(1))

    const [countGet, countSet] = React.useState(0);

    return <>
        <p style={{padding:"2rem", background:"blue", color:"white"}}>test paragraph</p>
        <button onClick={()=>{countSet(countGet+1)}}>{countGet}</button>
    </>
}

export const Other =()=>{
    return <p>other app component</p>
}

export function Root()
{
    return <div><h1>rooted</h1><App/><Other/></div>
}

ReactDOM.createRoot(document.body).render(<Root/>);