mirror of
https://github.com/bendtherules/some-hooks.git
synced 2026-08-18 13:52:05 +00:00
init create-react-hook@2.6.18
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import React from 'react'
|
||||
|
||||
import { useMyHook } from 'some-hooks'
|
||||
|
||||
const App = () => {
|
||||
const example = useMyHook()
|
||||
return (
|
||||
<div>
|
||||
{example}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
export default App
|
||||
@@ -0,0 +1,5 @@
|
||||
/* body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: sans-serif;
|
||||
} */
|
||||
@@ -0,0 +1,7 @@
|
||||
import React from 'react'
|
||||
import ReactDOM from 'react-dom'
|
||||
|
||||
import './index.css'
|
||||
import App from './App'
|
||||
|
||||
ReactDOM.render(<App />, document.getElementById('root'))
|
||||
Reference in New Issue
Block a user