Init with yo typescript-react-lib

This commit is contained in:
2019-07-19 12:49:20 +05:30
commit 0ad6620437
35 changed files with 12942 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
REACT_APP_DESCRIPTION=$npm_package_description
+1
View File
@@ -0,0 +1 @@
/node_modules
+15
View File
@@ -0,0 +1,15 @@
# reactFiberTraverse Basic Usage Example
This project was bootstrapped with [Create React App](https://github.com/facebookincubator/create-react-app).
## Available Scripts
In the project directory, you can run:
### `npm start`
Runs the app in the development mode.<br>
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
The page will reload if you make edits.<br>
You will also see any lint errors in the console.
+18
View File
@@ -0,0 +1,18 @@
{
"name": "basic-usage",
"description": "reactFiberTraverse Basic Usage Example",
"keywords": [
"react-fiber-traverse"
],
"version": "0.1.0",
"private": true,
"dependencies": {
"react": "16.8.6",
"react-dom": "16.8.6",
"react-scripts": "3.0.1",
"react-fiber-traverse": "latest"
},
"scripts": {
"start": "react-scripts start"
}
}
+14
View File
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>%REACT_APP_DESCRIPTION%</title>
</head>
<body>
<div id="root"></div>
</body>
</html>
+3
View File
@@ -0,0 +1,3 @@
<svg width="40" height="40" version="1.1" xmlns="http://www.w3.org/2000/svg">
<rect x="5" y="5" width="30" height="30" stroke="black" fill="transparent" stroke-width="5" />
</svg>

After

Width:  |  Height:  |  Size: 181 B

+5
View File
@@ -0,0 +1,5 @@
import C from 'react-fiber-traverse'
import React from 'react'
import ReactDOM from 'react-dom'
ReactDOM.render(<C />, document.getElementById('root'))