jsx-to-string
jsx-to-string copied to clipboard
Option to print props on a single line when component has children
Potential solution for #40
Adds a boolean option singleLineProps
to make props print on a single line. Defaults to false.
Note that this solution is pretty naive. Something more robust might involve setting a max characters per line, but this works perfectly for my use case.