We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I just followed the example and somehow created my own based on the example. This is how the parsed look like https://screencast.com/t/pCDuO0lb
Basically, onclick-"{function}..." is not gonna work.
onclick-"{function}..."
The text was updated successfully, but these errors were encountered:
can you add here the call you are making to the jsx-to-string?
Sorry, something went wrong.
@alansouzati
It is something like this jsxToString(<div> <input name="selected-style" type="checkbox" onClick={self.checkBoxHandler}/></div>)
jsxToString(<div> <input name="selected-style" type="checkbox" onClick={self.checkBoxHandler}/></div>)
and checkBoxHandler is just doing a console log.
checkBoxHandler
checkBoxHandler() { console.log('@checkBoxHandler') }
if you are not sending any parameters I would expect all functions to be onClick={...}, this is the default behavior.
onClick={...}
You can try to tinker with useFunctionCode and functionNameOnly to get a different results.
useFunctionCode
functionNameOnly
I'm not sure where this onclick-"{function}..." is coming from.
By default I set {...} because it is pretty hard (if not impossible) to grab the function code, specially for binded functions.
{...}
hey @belmer any update here?
No branches or pull requests
I just followed the example and somehow created my own based on the example. This is how the parsed look like https://screencast.com/t/pCDuO0lb
Basically,
onclick-"{function}..."
is not gonna work.The text was updated successfully, but these errors were encountered: