dmikester1
dmikester12y ago

✅ – dmikester1 – 17-04 Dec 14

Struggling to find what syntax error is here in my JSX. My IDE is complaining about the first line with the first '('.
{visibleQCCheckForm !== '' && (
const inputsArray = areaInputs[visibleQCCheckForm];
return (
<div>
<h5 className={'text-center'}>
Please fill in the <strong>{selectedArea.label}</strong> Check form below.
</h5>
</div>
)
)}
{visibleQCCheckForm !== '' && (
const inputsArray = areaInputs[visibleQCCheckForm];
return (
<div>
<h5 className={'text-center'}>
Please fill in the <strong>{selectedArea.label}</strong> Check form below.
</h5>
</div>
)
)}
5 Replies
dmikester1
dmikester12y ago
removed most of the code to make it easier to find the error
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
dmikester1
dmikester12y ago
ok, that makes sense, thank you
reactibot
reactibot2y ago
This question has an answer! Thank you for helping 😄 If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/565213527673929729/1052632169962537010
reactibot
reactibot2y ago
This thread hasn’t had any activity in 12 hours, so it’s now locked. Threads are closed automatically after 12 hours. If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/565213527673929729/1052632169962537010 Question not getting answered? Maybe it's hard to answer, or maybe you asked at a slow time. Check out these resources for help asking a good question: https://stackoverflow.com/help/how-to-ask http://wp.me/p2oIwo-26