Skip to content

Instantly share code, notes, and snippets.

@Tevinthuku
Last active August 13, 2019 11:53
Show Gist options
  • Save Tevinthuku/4f092db461a5c40798d19b8a041d6ae2 to your computer and use it in GitHub Desktop.
Save Tevinthuku/4f092db461a5c40798d19b8a041d6ae2 to your computer and use it in GitHub Desktop.
How we will use the library
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