Update Tinder.js
This commit is contained in:
parent
9e6204b45e
commit
f4287cb5f4
@ -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>
|
||||
);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user