'how to use "leaflet-buffer" in react-leaflet?

I want to buffer the shapes I drew on the react-leaflet. But I can't find any npm library to react like "leaflet-buffer". Please help me.

enter image description here



Solution 1:[1]

There seems to be a way of doing it using turf buffer package. Check this sandbox https://codesandbox.io/s/hue8o?file=/src/index.js

But I need to try it for myself and try this result here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Sharky