Hi - I have multiple places where I am having to use a custom styled SVG submit button and I currently have duplicated code.
DeepChat's submitButtonStyles
is taking the SVG content as string and my other places are being defined as in-lined JSX.
To avoid code duplication, I can either use a common string defining the SVG and then use the following in JSX code
<span dangerouslySetInnerHTML={{ __html: submitButtonSVG }} />
OR
implement a custom component and use that in DeepChat's submitButtonStyles
- is this second option even possible?
What would the best approach here?
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too