import React from "react";
import * as Iso from "@eno/iso";

export default ()=>
{
    const [countGet, countSet] = React.useState(1);   

    const [routeGet, routeSet] = Iso.Router.Consumer();

    return <div class="p-4 text-red-500">
        <Iso.Metas title="Component!"/>
        Route is: {routeGet.Path.toString()}
        <button className="p-4 bg-red-500 text-white" onClick={e=>{countSet(countGet+1); routeSet(["lol", "idk"], {count:countGet});}}>{countGet}</button>
        Component!!!
    </div>;
};