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 TinderCard from 'react-tinder-card';
|
||||||
import './Tinder.css'
|
import './Tinder.css'
|
||||||
|
|
||||||
@ -52,8 +52,8 @@ const db = [
|
|||||||
const getId = () => {
|
const getId = () => {
|
||||||
uniqueTags = cardId.filter(function(elem, pos) {
|
uniqueTags = cardId.filter(function(elem, pos) {
|
||||||
return cardId.indexOf(elem) === pos;
|
return cardId.indexOf(elem) === pos;
|
||||||
})
|
});
|
||||||
console.log(uniqueTags)
|
console.log(uniqueTags);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@ -83,7 +83,6 @@ const db = [
|
|||||||
) : (
|
) : (
|
||||||
null
|
null
|
||||||
)}
|
)}
|
||||||
<button onClick={() => getId()}>Вывести массив</button>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user