2023-04-02 00:06:27 -04:00
|
|
|
import React from "react";
|
2023-04-05 23:34:20 -04:00
|
|
|
import * as Iso from "@eno/iso";
|
2023-04-02 00:06:27 -04:00
|
|
|
|
|
|
|
export default ()=>
|
|
|
|
{
|
|
|
|
const [countGet, countSet] = React.useState(1);
|
2023-04-13 22:23:04 -04:00
|
|
|
|
|
|
|
const [routeGet, routeSet] = Iso.Router.Consumer();
|
|
|
|
|
2023-04-02 00:06:27 -04:00
|
|
|
return <div class="p-4 text-red-500">
|
2023-04-05 23:34:20 -04:00
|
|
|
<Iso.Metas title="Component!"/>
|
2023-04-13 22:23:04 -04:00
|
|
|
Route is: {routeGet.Path.toString()}
|
2023-04-14 21:41:01 -04:00
|
|
|
<button className="p-4 bg-red-500 text-white" onClick={e=>{countSet(countGet+1); routeSet(["lol", "idk"], {count:countGet+1});}}>{countGet}</button>
|
2023-04-02 00:06:27 -04:00
|
|
|
Component!!!
|
2023-04-14 21:41:01 -04:00
|
|
|
<a href="/custom/page" className="p-2 text(lg blue-500) font-bold">a link</a>
|
2023-04-02 00:06:27 -04:00
|
|
|
</div>;
|
|
|
|
};
|