Skip to content

Commit 274f045

Browse files
committed
added sample example directory
1 parent d96466b commit 274f045

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

example/index.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Password Example</title>
6+
</head>
7+
<body>
8+
<div id="app"></div>
9+
</body>
10+
<script src="build/main.js" type="text/javascript"></script>
11+
</html>

example/scripts/Root.jsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/* global require, document */
2+
import React from 'react';
3+
import ReactDOM from 'react-dom';
4+
5+
import Password from '../../src';
6+
7+
const Root = () => (
8+
<div>
9+
<Password />
10+
</div>
11+
);
12+
13+
ReactDOM.render(<Root />, document.getElementById('app'));

0 commit comments

Comments
 (0)