FAQ component

Easy
·
30 minutes

Submit a solution

Connect your GitHub account to submit a solution

Community solutions

FAQ component

Create a re-usable "Frequently Asked Questions" component

Alexandra Schwarting (Kollarova)
alexandrakollarova • 4 days ago

React Solution using <dl>

A custom <details> component that allows for granular control over default open and close states while mapping over an array of FAQs. It also has animations when opening and closing said FAQs.

Ryan Furrer
ryandotfurrer • 2 weeks ago

FAQ Component through JS

Made a component in JS without much touching the html.

Puru Verma
puruverma0001 • 3 months ago

basic solution

quick

Jonathan Ng
codeNgJon • 4 months ago

FAQ Component - Vanilla JS

FAQ Component using Vanilla JS

Vineeth Prakash
vinnyab28 • 4 months ago

FAQ component built using React

Code Link : https://codesandbox.io/p/sandbox/faq-component-yxsg32

reactlearner
hashiharis • 4 months ago

FAQ Component

I work with HTML, CSS and JS.

Sofia Pereira
SofiaPereira18 • 5 months ago

FAQ component - React template

Helps in building logic.

VISHESH DALMIA
vd7943 • 5 months ago

FAQ Component | React | Multiple Component | Easy to Understand

Built in react with basic css, a FAQ (Accordion component).

Mohit Pandey
mohit825 • 5 months ago

Vanilla JS

Accessible vanilla JS solution.

Veronika Ivhed
lindviveronika • 6 months ago

FAQ Component

FAQ Component in React

Shivani Sachdeva
shivani-sachdeva • 6 months ago

FAQ Component

FAQ Component in React

Shivani Sachdeva
shivani-sachdeva • 6 months ago

React FAQ Component

The FAQ component you're asking about is designed to display a list of frequently asked questions (FAQs), where each question can be clicked to reveal or hide the associated answer. The component has interactive features, such as toggling the visibility of the answer and rotating an arrow icon to in

Ritesh Nagrikar
ritesh7397 • 6 months ago

FAQ component

FAQ Component by React

Rida Farhan
Ridafarhan99 • 6 months ago

FAQ Component

React FAQ Component

Andrew Richardson
andrewRichardson • 7 months ago

FAQ component

React

Maduabuchi Chibuike
Chibuike-web • 7 months ago

Roee FAQ component

Simple

Roee Angel
roee030 • 7 months ago

FAQ - Vanilla JS Solution

A simple ES6 solution for a FAQ component.

Kinson Lau
klaunz • 9 months ago

faq

This is what is develped

Sagar Kumar
sagar1952115 • 9 months ago

FAQ component using React

This component created using React completing all the mentioned challenges. This does not have the chevron.

Ankur Gupta
ankur-gpta • 10 months ago

FAQ Accordion

Reusable FAQ Accordion along with all challenges

Prashant Kumar
Pk9697 • 10 months ago

FAQ

check

sahith chandra
sahithapex • 10 months ago

FAQ component (vanilla JS)

Simple FAQ accordion using Bootstrap and vanilla JS

Isidora Trickovic
Is1d0r4 • 11 months ago

Simple FAQ Question

Simple FAQ Question

Ceulain
ceulain • 11 months ago

FAQComponent implementation

Straightforward execution of the FAQComponent with toggle functionality

Saloni Desai
SaloniDesai • 11 months ago

FAQ component with react.js

This is a simple Faq component made with react and using simple css to understand react and enhance my react.js skills

manish
Manish-dahiya • 11 months ago

FAQComponent

I have implemented the solution but at the useState import it is giving some unknown error that I could not resolve. But I checked the code in VS code it is working

Siddhesh Dhobale
SiddheshDhobale • 11 months ago

FAQ COMPONENT (Vanilla JS)

FAQ COMPONENT in Vanilla JS https://aniketsinha2002.github.io/Javascript-and-API-practices/faq-component/

Aniket Sinha
aniketsinha2002 • 11 months ago

FAQ component

this solution is not properly styled but the functionalities asked are completed

Udhav
udhavm47 • 1 year ago

no library used

This is done in quickly and do I tried not to check anything from the internet

Alper
insanicly • 1 year ago

FAQ Component

Vanilla JS

Sq
Sumati • 1 year ago

FAQ Component using Vanilla JS

Simple solution

Sq
Sumati • 1 year ago

FAQ-component

i created this faq component using reactJS and normal css for styling, i used 2 react icons from react icons.

Omar ElDwary
OmarElDwary • 1 year ago

FAQ REACT

this is very easy

red wolf
25yash-mehra • 1 year ago

FAQ component Solution

sample solution using useState

satadhi
satadhi • 1 year ago

React Typescript, Fetch-abortController, Dynamic Pagination

https://codesandbox.io/p/sandbox/adoring-currying-3rmd28

Mesc
mescalito • 1 year ago

FAQ Component

Reusable and extendable component

Rohit Khatri
khatri-rohit • 1 year ago

FAQ Component

Re-usable and extendable component

Rohit Khatri
khatri-rohit • 1 year ago

FAQ Component

--

Rohit Khatri
khatri-rohit • 1 year ago

FAQ Component

Reusable and extendable

Rohit Khatri
khatri-rohit • 1 year ago

FAQ component React solution

Tried a React version after doing a Vanilla JS version.

Tim Malabuyo
malabooboo • 1 year ago

A bit rusty

Simple solution with vanilla JS.

Tim Malabuyo
malabooboo • 1 year ago

React Solution

My take on this question, including its 2 sub-challenges

Joshua Thomas Paul
JoshTPaul • 1 year ago

FAQ With Hotkeys

FAQ With Hotkeys. Using React and Recoil

Sam Rothstein
srothst1 • 1 year ago

React Solution - No useEffect hook used. React icons imported.

This is my solution using React. I have seen some React solutions using useEffect when it is in my opinion not actually necessary, so I wanted to show my implementation using just the useState hook. I also imported and used React icons for the toggle icon.

Awoms kelechi
Kelechi095 • 1 year ago

React FAQ

No fancy. Very basic styling. Tailwind css/Vite/React/Ts

Awais alwaisy
awaisalwaisy • 1 year ago

FAQ component

a re-usable "Frequently Asked Questions" component

Tarun Pereddi
TarunPereddi • 1 year ago

FAQ Components

Pure Vanilla JS, HTML, CSS

Theodore Andrew
theodoreandrew • 1 year ago

FAQ Component Using React

Used the CSS grid trick to add a smooth transition to the opening and closing of the FAQ.

Brian Blosser
bpb54321 • 1 year ago

FAQ component using native Javascript

Created a simple FAQ section using simple HTML, CSS and Javascript

Koel Mukherjee
KoelMukherjee • 2 years ago

React Hooks w imported react-icons

This solution utilizes React's useState and useEffect hooks, the map function to render the array of FAQs, and icons imported via skypack from the react-icons package.

Emilio da Costa
emiliodacosta • 2 years ago

Vanilla JS FAQ Component:

The Vanilla JavaScript FAQ component offers a lightweight, customizable, and accessible solution for displaying Frequently Asked Questions on websites. Built without external libraries, it features a collapsible design, easy integration, and responsiveness for seamless user experience. Simply custom

Didier
Didier-ds • 2 years ago

FAQ component - React

React + Basic CSS styling

Sameer Khan Mohammad
sk112 • 2 years ago

Solution Found

I used fontawesome for the icon arrows and pure js

JimK
web-dev-pr0 • 2 years ago

FAQ Component Submission

Used TailwindCSS + React, didn't use any animations

Waffen Sultan
Waffenffs • 2 years ago

FAQ component

FAQ component using vanilla javascript

mohamed daahir
Muniir1 • 2 years ago

solution

faq react

Shrey tomar
ASHR928 • 2 years ago

solution

faq using react

Shrey tomar
ASHR928 • 2 years ago

FAQ comp

round 2

Prajuwal Singh
Prajuwal • 2 years ago

FAQ component

"Discover my latest project, a finely tuned FAQ Component that showcases my expertise in front-end development. This component elegantly presents frequently asked questions, offering users an intuitive and responsive interface to find answers effortlessly.

Shahin
sliyarli • 2 years ago

faq

using vanilla js

Dennis Rajkumar
dennisaarkay • 2 years ago

Solution - React

React based simple solution - no styling

Divya Nittla
divyanittla • 2 years ago

FAQ component React

FAQ component React

Aman Mulani
amanmulani09 • 2 years ago

FAQ Component Tab using Vanilla JS

FAQ component tab created with Vanilla JS, HTML and CSS

Bharati Subramanian
bharati-21 • 2 years ago

FAQ Component

with individual card open/close feature

Somyanath Mohanty
somyanath • 2 years ago

FAQ Component

with only one question open feature

Somyanath Mohanty
somyanath • 2 years ago

FAQ component

Only styling is left

Aditya Singh
adiii21 • 2 years ago

FAQ component

component made using vanilla js , html and css

Chanakya sarma
Chanakyasarma • 2 years ago

FAQ component

Simplest built

Alex
alexsoyes • 2 years ago

FAQ component -Made with react

FAQ component -Made with react

Prajuwal Singh
Prajuwal • 2 years ago

FAQ component with Reactjs

FAQ component with Reactjs

amr atallah
amratallah123 • 2 years ago

FAQ component with Reactjs

FAQ component with Reactjs

amr atallah
amratallah123 • 2 years ago

FAQ Component Solution

Simple implementation using built-in HTML elements <details> and <summary>

Jason Yeung
jsonyeung • 2 years ago

FAQ component

Easy to understand solution using Vanilla JS. It's reusable.

Uddipta Gogoi
uddiptagogoi2000 • 2 years ago

My Solution for "FAQ component"

Create an element by destructuring each FAQ key-value pairs. Using Event Delegation technique for attach a click event handler, is a technique in JS where you attach a single event handler to a parent element, instead of individual handlers to its child elements.

M.Mahdi Pratama Putra
mahdipratama • 2 years ago

Using HTML Details/Summary Element (no extra state needed)

Instead of storing the toggle a show/hide state, I just used the HTML5. details/summary elements which have this functionality built-in

Raymond Broome
m0nd • 2 years ago

With Array.fill( ) method and useState

Created using Array.fill( ) method and useState hook in React

Hemanth
hmnth07 • 2 years ago

Vanilla JS Solution

A reusable, minimally-styled vanilla JavaScript FAQ component.

Jon Rutter
jonrutter • 3 years ago

react faq solution

- Able to toggle question to hide/show answer - First question is open by default - Does not contain correct chevron icon - Did not include too much styling

Dana Ng
riceball1 • 3 years ago

Simple solution without proper icon

SImple react solution

Ronak Vyas
ronaksvyas • 3 years ago

React solution

React solution with useState, simple css

Anzhelika
anzhelika-dev • 3 years ago

React solution without css

First render questions component using a map function Create a new single-question component with question, answer, index State: isExpanded (useState) inside the single-question component

Leanne Zhang
leannezhang • 3 years ago

React solution

100% working and easy code

Chirag Dogra
ChiragDogra • 3 years ago

React working solution

Answer 1 showing by default, with transition animation

Angela
angelawonggggg • 3 years ago

FAQ Component

FAQ Component using vanilla JavaScript

siemen_subbaiah
siemen-subbaiah • 3 years ago

FAQ component

FAQ component with vanilla javascript

karen
vkaren • 3 years ago

FAQ Component in plain JS

Haven't used vanilla JS for a good while so I figured I'd go with just JS to rehearse instead of React.

Richard Verbraak
RichardVerbraak • 3 years ago

FAQ-VanillaJs Simple Component

FAQ-VanillaJs Simple Component

Shaikh Imran
imran-mind • 3 years ago

Vanilla JS Solution

Basic solution

Prime
madhav1991 • 3 years ago

FAQ component

I created this with React. I felt really puzzled while implementing the condition the first question should be visible by default. I tried two different state, first to keep others as false and the other to maintain state of first component.

Ranjeet Kumar
Ranjeetk489 • 3 years ago

FAQ component

My solution for FAQ component

Anjali Asha Jacob
anjaliasha123 • 3 years ago

FAQ react page

using react and reused component for render q&a

Seale Rapolai
Seal12 • 3 years ago

Vanilla JS FAQ

Vanilla JS implementation of the FAQ component

Gautam Mankatti
acegautam • 3 years ago

React solution

Done with react.

Arian Joyandeh
kanarian • 3 years ago

Simple dark mode FAQ component

Made using HTML, CSS, Vanilla JS

Mohamed M. Hagras
mohagras903 • 3 years ago

FAQ Component

Built using React and CSS. Didn't get the smooth animation transition working yet, but the other stuff is.

Chad Szymarek
chad-szymarek • 3 years ago

first attempt. WIP

not finished, but pretty close. works

Chris
IntrinsicInnovation • 3 years ago

FAQ Component

I have built using Vanilla JS , HTML and CSS.

Uday Janardhan Singh
Udaay • 3 years ago

Done it

-

Niyaz
niazlake • 3 years ago

FAQ component

FAQ component in react

Farman
CipHer170 • 3 years ago

FAQ component

FAQ component in React

Farman
CipHer170 • 3 years ago

React + SCSS (no transition/animation)

FAQ Component using React template, SCSS, useState(). Adding a transition/animation is a bit tricky with my implementation so I didn't do try much, but I assume if my click handler instead changed height and visibility of the answer, then I could add a transition. I'm lazy right now though

cxs7700
cxs7700 • 3 years ago

FAQ component

Used Pure Vanilla JavaScipt, HTML, CSS and HTML icons

sadhika yezzu
sadhikay • 3 years ago

React FAQ

React FAQ

Tuheen
TojhaDeveloper • 3 years ago

FAQ component using Vanilla JS

No styling. Simple html and javascript.

Sanket Kumar Laha
SanketKumarLaha • 3 years ago

FAQ component

Uses semantic tags

Shean Johnson
SoftwareShean • 3 years ago

FAQ

Uses semantic tags.

Shean Johnson
SoftwareShean • 3 years ago

Simple solution using details and summary

This solution uses the <details> and <summary> tags to work natively without JavaScript.

thecashewtrader
thecashewtrader • 3 years ago

FAQ Component

Vanilla JS. Opening a question closes other questions. Opening/closing is animated using CSS transitions.

Nicole
nxgrizzle • 3 years ago

the most simplest FAQ Vanilaa javascript

My arrow is not rotating on click; I need help with that

Etancher
jahanvir • 3 years ago

Quick Vanilla JS Solution

Quick solution in vanilla JS, CSS, and HTML. Handles both additional challenges as well.

Myles Dixon
dixonmyles • 3 years ago

Super easy solution using details and summary tags

Super easy solution using details and summary tags

Biuregh Parseghian
Biuregh • 3 years ago

FAQ Component

Here is my FAQ Component

Kiran Pillai
kiran-pillai • 3 years ago

Minimal Solution

Its a very basic solution but all areas covered

Akhil Thodiyil
AkhilThodiyil • 3 years ago

FAQ Component in React

Inside <FAQComponent /> it maps through the data to create a <Collapsible /> component for each, and also passes the index of each object. Inside the <Collapsible /> there is a <details> with a <summary> as the question. And the hidden <details> is the answer. Details is open if index is 0.

Jack Stevens
Jakalanern • 3 years ago

FAQ Component

I have created component in react and used css selectors to toggle the accordion content.

Hemant Nigam
hemantnigam • 3 years ago

FAQ Component in React

I used another component to render the answer if state is active

Iman Haris Bin Hadi
DonutRanger • 3 years ago

FAQ component (CSS only)

Used React only for injecting a dynamic number of questions. The chevron is actually a restyled checkbox, and the open/close mechanism is based on the checked state. Design inspired by https://uxdesign.cc/ui-cheat-sheet-accordions-3e88f0d4dfee

Danilo Arcidiacono
daniloarcidiacono • 3 years ago

FAQ React

A react component that generates FAQ by mapping the values in the object

Dipanshu Singh
iamdipanshusingh • 3 years ago

FAQ Component

VanillaJS

Vimal Madhavan
vimalkodoth • 3 years ago

FAQ react component

React component that generates FAQ cards by mapping over an array of objects. The current card open is managed by tracking the mapped idx with an onClick handler

Jason Victor
Theqwertypusher • 3 years ago

FAQ React

I created an accordion component that spews out the FAQ content into the FAQ component

Ojekunle D.H Adetunji (TeeJay)
habdams • 3 years ago

FAQ Component OOJS

FAQ Component OOJS

Vimal Madhavan
vimalkodoth • 3 years ago

FAQ component React

React component with HTML details and summary tag.

Owais Raza khanzada
OwaisRaza • 3 years ago

FAQ component React

React component with HTML details and summary tag.

Owais Raza khanzada
OwaisRaza • 3 years ago

FAQ Solution Vanilla JS

FAQ Solution Vanilla JS

Pankaj Dagar
pankajdagar • 3 years ago

FAQ component: React Component with State

FAQ component: React Component with State

Snehal Parate
snehal1791 • 3 years ago

FAQ Component - React

React component with html details item

Matt
matthewfee • 3 years ago

FAQ component - Vanilla JS

FAQ component with questions/answers toggle

HYEWON JOO
joo7875 • 3 years ago

Vanilla Javascript quick as possible

Just the quickest implementation I could make.

mattias
CodePerson2 • 3 years ago

FAQ component as a Web Component

Solution of the list as a self contained web component.

Ian Von Holt
ianvonholt • 3 years ago

FAQ component with React

Create a re-useable FAQ component with React.

Tarun Singh
tarunsinghdev • 3 years ago

FAQ component with HTML, CSS, and Javascript

Using a function renderFAQ to take in questions and answers to create DOM elements and render.

matteo1222 • 3 years ago

FAQ component

solution for FAQ component

Francisco Castillo
fcastillo90 • 3 years ago

FAQ Component

Create a re-usable "Frequently Asked Questions" component

Xin Chen
xchen1778 • 3 years ago
Get future questions delivered straight to your inbox for free

Sign up and receive instant access to new questions when we publish them.

We‘ll only use your information to deliver new questions and to provide you updates about our product. We‘ll never spam you or sell your information without your consent. Unsubscribe at any time.