Posts by Vinicius Zucatti • 39 points
2 posts
-
1
votes2
answers65
viewsA: Problem with Next, Typescript and Eslint
Hello, you will probably need to add this rule to your .eslintrc.json rules: { 'react/jsx-filename-extension': [2, { 'extensions': ['.js', '.jsx', '.ts', '.tsx'] }], }, I’ll leave some reference…
-
2
votes1
answer70
viewsA: How to remove the first element of an array in Javascript?
The method shift() removes the first element of an array and returns that element. This method changes the size of the array. example: const compras = ['café', 'banana', 'queijo'] compras.shift()…