npm install --save-dev @svgr/babel-plugin-svg-dynamic-title
.babelrc
{ "plugins": ["@svgr/babel-plugin-svg-dynamic-title"] }
This plugin handles both the titleProp and descProp options. By default, it will handle titleProp only.
MIT