Jak wyjąć tekst z tablicy strun w React
var ret = "data-123".replace('data-');
console.log(ret); //prints: 123
Condemned Chipmunk
var ret = "data-123".replace('data-');
console.log(ret); //prints: 123