Update Tinder.js
Some checks failed
Create and publish a Docker image / Publish image (push) Failing after 27s
Create and publish a Docker image / Deploy image (push) Has been skipped

This commit is contained in:
VITALY-VORON 2023-08-24 21:43:01 +03:00
parent 9e6204b45e
commit f4287cb5f4

View File

@ -1,4 +1,4 @@
import React, {useState} from 'react';
import React, {useEffect, useState} from 'react';
import TinderCard from 'react-tinder-card';
import './Tinder.css'
@ -52,8 +52,8 @@ const db = [
const getId = () => {
uniqueTags = cardId.filter(function(elem, pos) {
return cardId.indexOf(elem) === pos;
})
console.log(uniqueTags)
});
console.log(uniqueTags);
}
return (
@ -83,7 +83,6 @@ const db = [
) : (
null
)}
<button onClick={() => getId()}>Вывести массив</button>
</div>
);
};