forked from pmndrs/react-spring-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
26 lines (24 loc) · 670 Bytes
/
index.js
File metadata and controls
26 lines (24 loc) · 670 Bytes
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
import React from 'react'
import ReactDOM from 'react-dom'
import DemoGrid from './components/DemoGrid'
import Demo from './components/Demo'
import examples from './components/examples-hooks'
import './styles.css'
const DEBUG = false
// const DEBUG = 'viewpager'
ReactDOM.render(
<DemoGrid fullscreen={!!DEBUG}>
{examples
.filter(item => (DEBUG ? item.name.includes(DEBUG) : true))
.map(data => (
<Demo
overlayCode={DEBUG === false}
fullscreen={!!DEBUG}
key={data.name}
{...data}
import={import('./demos/' + data.name)}
/>
))}
</DemoGrid>,
document.getElementById('root')
)