Skip to content

Commit 9706248

Browse files
Update and rename App.js to App.tsx
1 parent ea02ee2 commit 9706248

File tree

2 files changed

+21
-18
lines changed
  • React-Day/0001. Accordion Component with Single Panel Open/src

2 files changed

+21
-18
lines changed

React-Day/0001. Accordion Component with Single Panel Open/src/App.js

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import Accordion from "./component/Accordion";
2+
import "./styles.css";
3+
4+
export interface IAccordionData {
5+
heading: string;
6+
content: string;
7+
}
8+
9+
export default function App() {
10+
const data: IAccordionData[] = [
11+
{ heading: "Heading 1", content: "Content 1" },
12+
{ heading: "Heading 2", content: "Content 2" },
13+
{ heading: "Heading 3", content: "Content 3" },
14+
{ heading: "Heading 4", content: "Content 4" },
15+
];
16+
return (
17+
<div className="App">
18+
<Accordion data={data} />
19+
</div>
20+
);
21+
}

0 commit comments

Comments
 (0)