I just have a project that i'm using react+typescript, and i have a simple question, i know there are multiple forms that i can pass values of a component through a arrow function parameter, but, i just search a lot and i can't find how can i make that:
<Button value={'1'} onClick={(e => SomeFunction(e.target))}>some text</Button>
The code inside the function, is something like that:
const SomeFunction = (e) => {
console.log(e)
}
I just want to pass to the Function, the value of the properties value, that is equal to '1', can you guys, help me?