Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
addSkipper() {
const { name, displacement, country } = this.refs;
if (!name.value) return;
// console.log(dicplacement.value); // Kontrol amaçlı. Browser'dan F12 ile değerlere bakılabilir
alasql('INSERT INTO Submarine VALUES ?',
[{
id: alasql.autoval('Submarine', 'id', true),
name: name.value,
displacement: displacement.value,
country: country.value
}]
);
this.getAll();
}