Last active
August 13, 2019 11:53
-
-
Save Tevinthuku/4f092db461a5c40798d19b8a041d6ae2 to your computer and use it in GitHub Desktop.
How we will use the library
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
import { Component, render } from "tevreact" | |
export default class App extends Component { | |
state = { | |
movie: "John Wick" | |
} | |
render() { | |
const { name } = this.state; | |
const { username } = this.props; | |
return ( | |
<h1>Hey there {username} Have you watched {name}</h1> | |
) | |
} | |
} | |
render(<App username={"tevin"} /> document.getElementById("app")) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment