i want to create svg shapes dynamically and append it to dom using react here is the jsfiddle link
If the goal is to draw a cat then the problem is that your d:
properties is full of new lines thus making it not being a valid SVG path.
Check your console and you'll see the error Uncaught SyntaxError: embedded: Unterminated string constant
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.