Open shivanand-harness opened 6 months ago
Wrap the jsx around a pair of curly bracket like this. The caveat is the output jsx will contain that redundant bracket.
const ${variables.componentName} = (${variables.props}) => (
<span>{${variables.jsx}}</span>
);
💬 Questions and Help
I want to wrap all my svg elements with span element and pass some props to span element. is there any way.
I was trying to do with custom template
cmd:
template.js
.svgrrc.js
error