Hi Insided Community,
I was excited to use the code widget of the editor but so far I’m unable to make it work, or I’m afraid that’s what it is. Am I missing something or the code widget is just a grey background and red font ? What are the languages that work well ?
See below a few code examples:
Javascript
const listaRealmTrovata = async () => {
await axios.get(APICALL1)
.then((realmUserAttivi) => {
axios.get(APICALL2)
.then((realmAttivi) => {
realmUserAttivi.data.map((realmUserAttivo) => {
realmAttivi.data.filter((res) => {
if (realmUserAttivo.realm.id !== res.id) {
setListaRealm(previousListRealm => a...previousListRealm, { value: res.id, label: res.realmId }]);
}
})
})
})
})
};
Java
fusedLocationProviderClient = LocationServices.getFusedLocationProviderClient(this)
locationManager = getSystemService(LOCATION_SERVICE) as LocationManager
val locationListener: LocationListener = this
locationManager.requestLocationUpdates(
LocationManager.GPS_PROVIDER, 2000, 0F, locationListener
)
CSS (good)
#slides ::content img {
width: 25%;
float: left;
}
HTML (good)
<template>
...
<div class="inner">
<content select="img"></content>
</div>
</template>