grommet / jsx-to-string

Parse your React JSX component to string
MIT License
124 stars 26 forks source link

Option to not render values #46

Closed areknow closed 3 years ago

areknow commented 3 years ago

Not sure how to word it exactly, sorry about that..

I would like to show the code:

<Button
  onChange={() => {
    setCount(count + 1);
  }}
>
  clicked: {count}
</Button>

But instead I am getting the rendered value of {count}:

Screen Shot 2021-03-15 at 5 11 41 PM

Is this possible? Thanks!

areknow commented 3 years ago

wrong repo