-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample.jsx
More file actions
35 lines (33 loc) · 1.02 KB
/
Copy pathsample.jsx
File metadata and controls
35 lines (33 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
var React = require("react");
var react_accordion = require("./accordion.jsx");
require("./accordion-styles.css");
var Accordion = react_accordion.Accordion;
var Section = react_accordion.Section;
var Heading = react_accordion.Heading;
var Content = react_accordion.Content;
React.render(
<Accordion>
<Section>
<Heading>Accordion Section 1</Heading>
<Content>
<p>Some text Content in a paragraph</p>
<button>Button 1</button>
</Content>
</Section>
<Section>
<Heading>Accordion Section 2 <button>Activate Foo</button><button>Activate Bar</button></Heading>
<Content>
Just some text content for Accordion Section 2. Nothing to see here.
</Content>
</Section>
<Section>
<Heading>Accordion Section 3</Heading>
<Content>
<div>Some text Content in a div</div>
<div>Some more text Content in a div</div>
<div>Even more text Content in a div</div>
</Content>
</Section>
</Accordion>,
document.getElementById('content')
);