hello i am now able to retrieve data from spreadsheets using tabletops
but now i need to match the user input to the array and if it matches it'll be a success
this is inside the render
const { data } = this.state
const tabletopModel = data['token']
const newData = tabletopModel ? tabletopModel.all() : null
console.log('newData', newData)
this is inside the return()
{
newData
? <div>
<p>{newData[1].ID}</p>
<p>{newData[1].氏名}</p>
</div>
: null
}
i tried doing this or hopefully it should like this??
{
if (row1.アドレス == document.getElementById('userEmail').value && row1.Passkey == document.getElementById('userPassword').value) {
return (
<div key={row1.ID}>
<p>{row1.ID}</p>
<p>{row1.氏名}</p>
<p>{row1.アドレス}</p>
<p>{row1.Passkey}</p>
<p>{row1.token}</p>
</div>
)
}
else {
}
}