Each template accepts 2 props: question & answer. This makes it really reusable for the FAQ section! I also used useState to render the answer section if the button is clicked and toggle visibility with the button.
Styled it
Once again using padding and the wonderfully convenient tailwind css presets I styled the FAQ Section
Rearranged the website
I put the certifications section below FAQs because it seemed better there!
Challenges
Honestly I didn’t know that you could render stuff using true and false statements when using useState but when I found out I was like wow this is so easy { true/falsestatement && the element you want to put }
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.