Skip to content

Commit e1626c8

Browse files
author
ugogo
committed
project reorganization
- use playground for dev purposes - move examples into their own folder with actual dependencies
1 parent 851e468 commit e1626c8

34 files changed

+21883
-3
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ A verification code input, autocompletion friendly
66

77
## Examples
88

9-
- Basic - [CodeSandbox](https://codesandbox.io/s/basic-6ejdp) - [Source](https://github.com/ugogo/react-input-verification-code/tree/master/example/src/Basic.tsx)
9+
- Basic
10+
- [CodeSandbox](https://codesandbox.io/s/basic-6ejdp)
11+
- [Source](https://github.com/ugogo/react-input-verification-code/tree/master/examples/basic/src/index.tsx)
1012

1113
## Install
1214

File renamed without changes.

examples/basic/package.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"name": "react-input-verification-code-example",
3+
"homepage": ".",
4+
"version": "0.0.0",
5+
"private": true,
6+
"scripts": {
7+
"start": "react-scripts start",
8+
"build": "react-scripts build",
9+
"test": "react-scripts test",
10+
"eject": "react-scripts eject"
11+
},
12+
"dependencies": {
13+
"@types/react": "^16.9.27",
14+
"@types/react-dom": "^16.9.7",
15+
"react": "^16.13.1",
16+
"react-dom": "^16.13.1",
17+
"react-scripts": "^3.4.1",
18+
"typescript": "^3.7.5",
19+
"react-input-verification-code": "0.1.4"
20+
},
21+
"devDependencies": {
22+
"@babel/plugin-syntax-object-rest-spread": "^7.8.3"
23+
},
24+
"eslintConfig": {
25+
"extends": "react-app"
26+
},
27+
"browserslist": {
28+
"production": [
29+
">0.2%",
30+
"not dead",
31+
"not op_mini all"
32+
],
33+
"development": [
34+
"last 1 chrome version",
35+
"last 1 firefox version",
36+
"last 1 safari version"
37+
]
38+
}
39+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

examples/basic/src/index.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import * as React from 'react';
2+
import * as ReactDOM from 'react-dom';
3+
import ReactInputVerificationCode from 'react-input-verification-code';
4+
5+
import 'react-input-verification-code/dist/index.css';
6+
import './index.css';
7+
8+
ReactDOM.render(
9+
<ReactInputVerificationCode />,
10+
document.getElementById('root')
11+
);
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)