mirror of
https://github.com/He4eT/huge-link.git
synced 2026-05-05 00:47:27 +00:00
Initial commit
This commit is contained in:
commit
11523c975b
13 changed files with 15621 additions and 0 deletions
16
src/routes/editor/index.js
Normal file
16
src/routes/editor/index.js
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import {h} from 'preact'
|
||||
import {Link} from 'preact-router/match'
|
||||
|
||||
const Editor = ({markdown, setMarkdown}) => (
|
||||
<section>
|
||||
<textarea
|
||||
onInput={ ({target}) => setMarkdown(target.value) }>
|
||||
{ markdown }
|
||||
</textarea>
|
||||
|
||||
<Link href='/preview'>
|
||||
Preview
|
||||
</Link>
|
||||
</section>)
|
||||
|
||||
export default Editor
|
||||
Loading…
Add table
Add a link
Reference in a new issue