Skip to content

Instantly share code, notes, and snippets.

@ahmedam55
Created July 11, 2017 16:57

Revisions

  1. ahmedam55 revised this gist Jul 11, 2017. 1 changed file with 1 addition and 5 deletions.
    6 changes: 1 addition & 5 deletions index.js
    Original file line number Diff line number Diff line change
    @@ -3,11 +3,7 @@ import { h, render, Component } from 'preact';
    class App extends Component {

    render(props, { data }) {
    return (
    <main>
    <h1>Hello World!</h1>
    </main>
    )
    return (<h1>Hello World!</h1>)
    }
    }

  2. ahmedam55 revised this gist Jul 11, 2017. No changes.
  3. ahmedam55 created this gist Jul 11, 2017.
    15 changes: 15 additions & 0 deletions index.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    import { h, render, Component } from 'preact';

    class App extends Component {

    render(props, { data }) {
    return (
    <main>
    <h1>Hello World!</h1>
    </main>
    )
    }
    }


    render(<App/>, document.body)