I am using React Leaflet to plot a GeoJSON file with several LineString features. I can plot and style them using
<GeoJSON data={lines} style={onEachLineFeatureStyle}/>
where the onEachLineFeatureStyle function returns a style appropriate for the line feature, based on the feature's attributes.
I would now like to style some of these Line String features using a "double line" style, like this:

I have found an example of how to do this using the the Leaflet.PolylineOffset plugin but I can't figure out how to do this with react-leaflet specifically.
I'm a competent C and Python programmer but very new to using modern JS and especially to React.