JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://cdn.jsdelivr.net/npm/@turf/[email protected]/turf.min.js"></script>

JavaScript

const worldPolygon = turf.polygon([[
    [-180.0, 89.0],
    [-180.0, -89.0],
    [180.0, -89.0],
    [180.0, 89.0],
    [-180.0, 89.0]
]]);

const multiPolygon =  turf.multiPolygon([
    [
        [
            [
                1.5848481682316446,
                48.31986594114687
            ],
            [
                1.8832104345803926,
                48.42342314863003
            ],
            [
                1.8734490264407953,
                48.31243967954646
            ],
            [
                2.0474541685456376,
                48.433892157002646
            ],
            [
                1.9407386741551667,
                48.44339036470831
            ],
            [
                2.139324407980982,
                48.51231658749331
            ],
            [
                2.140165825025228,
                48.54733551405033
            ],
            [
                2.005794737854104,
                48.62423252424017
            ],
            [
                2.14201346746852,
                48.62423252424017
            ],
            [
                2.1464195901569383,
                48.80761089514678
            ],
            [
                2.017641560842897,
                48.71825624766248
            ],
            [
                1.9156353862877893,
                48.79208242133859
            ],
            [
                1.9086020675566275,
                48.71211628317572
            ],
            [
                1.977029724641852,
                48.69007709065282
            ],
            [
                1.9380268126907942,
                48.663014310869556
            ],
            [
                1.9059004038856775,
                48.68139940276142
            ],
            [
                1.9020902267645763,
                48.638079149302555
            ],
            [
                1.8821344534680975,
                48.62423252424017
            ],
            [
     ...