-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improved init command with typescript scaffolding (#24)
improved init command with typescript scaffolding
- Loading branch information
Showing
45 changed files
with
812 additions
and
632 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
{ | ||
"name": "react-component", | ||
"version": "0.0.0", | ||
"private": true, | ||
"files": [ | ||
"dist" | ||
], | ||
"main": "dist/index.cjs.js", | ||
"module": "dist/index.esm.js", | ||
"source": "src/index.js", | ||
"browser": "dist/index.js", | ||
"scripts": { | ||
"build": "klap build", | ||
"start": "klap start", | ||
"watch": "klap watch" | ||
}, | ||
"dependencies": { | ||
"react": "*", | ||
"react-dom": "*" | ||
}, | ||
"devDependencies": { | ||
"klap": "2.1.0" | ||
}, | ||
"klap": { | ||
"example": "public/index.js" | ||
} | ||
"name": "react-component", | ||
"version": "0.0.0", | ||
"private": true, | ||
"files": [ | ||
"dist" | ||
], | ||
"main": "dist/index.cjs.js", | ||
"module": "dist/index.esm.js", | ||
"source": "src/index.js", | ||
"browser": "dist/index.js", | ||
"scripts": { | ||
"build": "klap build", | ||
"start": "klap start", | ||
"watch": "klap watch" | ||
}, | ||
"dependencies": { | ||
"react": "*", | ||
"react-dom": "*" | ||
}, | ||
"devDependencies": { | ||
"klap": "2.1.0" | ||
}, | ||
"klap": { | ||
"example": "public/index.js" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
import React from 'react' | ||
import { render } from 'react-dom' | ||
import { Button } from '../src' | ||
import React from 'react'; | ||
import { render } from 'react-dom'; | ||
import { Button } from '../src'; | ||
|
||
render(<Button onClick={e => console.log(e)} />, document.getElementById('root')) | ||
render( | ||
<Button onClick={e => console.log(e)} />, | ||
document.getElementById('root') | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import React from 'react' | ||
import React from 'react'; | ||
|
||
const Button = ({ onClick }) => { | ||
return ( | ||
<button class="button" onClick={onClick}> | ||
Hello Button | ||
</button> | ||
) | ||
} | ||
); | ||
}; | ||
|
||
export { Button } | ||
export { Button }; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.