const markersCoords = products.map(({ productDetails: { startLatitude, startLongitude } }) => {
return googleMap.Marker({
position: {
lat: +startLatitude,
lng: +startLongitude
},
map
})
})
const bounds = new window.google.maps.LatLngBounds()
map.fitBounds(bounds)
setMap(map)
{
"parseDate": "2020-07-29T00:00:00.000Z",
"order" : "SOME",
"TRIP": 0.0061,
"OKS": 93.33991119881563
},
import React, { useState, useEffect } from 'react';
import ReactDOM from 'react-dom';
import Form from "@rjsf/core";
import axios from 'axios';
const EaseForm = () => {
const [ scheme, setScheme ] = useState()
useEffect(() => {
axios.get(`http://localhost/lk-ssl/hs/json/new_student`.json)
.then(res => {
const schema = res.data
setScheme(schema)
})
})
const onSubmit = ({ formData }) => {
console.log(formData)
}
return(
<Form
schema={scheme}
onSubmit={onSubmit}
/>
)
}
ReactDOM.render(
<EaseForm />,
document.getElementById('app')
)
let a = arr.filter(item =>
item.title.toLowerCase().includes(title) &&
item.city === city &&
item.type.indexOf(+type) > -1
)