How to define handlers
Closed this issue · 2 comments
AirBorne04 commented
Hi, i have some troubles figuring out what the suggested syntax for eventhandlers would be?
was a mixup on my side never mind :) can be closed
bluewings commented
@AirBorne04
Hi, I've added two examples that use event handlers.
One is simple usage and the other is binding arguments to the handler.
You can checkout the examples/create-react-app
and run it.
Please let me know if there is a problem.
pug-as-jsx-loader/examples/create-react-app/src/App.pug
Lines 11 to 16 in 42c4f1e
AirBorne04 commented
For me this was not working that way i had to skip the ' and { and just put the plain function reference, but that might be the case due to my specific setup.