This commit is contained in:
szabomarton
2025-01-28 11:38:27 +01:00
parent 9c5ca86086
commit 7f4a15b9c3
36841 changed files with 4032468 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
import { useContext, useEffect } from "react";
import { CounterContext } from "./CounterContext";
function Counter(){
let {counter, setCounter} = useContext(CounterContext);
return (
<button onClick={() => {setCounter(counter + 1)}}>
Nyomj meg {counter}
</button>
)
}
export default Counter;