With complex shapes like this, in my opinion its better to just save this out as an SVG image and convert it to a react component using https://react-svgr.com/ -- as opposed to complicated CSS hacks. Since SVG images are just plain text HTML elements on the inside (as opposed to png etc where its just binary image data) it means you can have the CSS change on hover/select etc via props or plain old CSS styling.
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.