Skip to content

Instantly share code, notes, and snippets.

View datner's full-sized avatar

Datner datner

  • Island
  • Israel
View GitHub Profile
class Thing extends React.Component {
constructor() {
super()
this.state = {
name: "Yuval Datner"
}
}
render() {
return (
const Thing = () => {
const [name, setName] = useState("Yuval Datner");
return (
<div> {name} </div>
)
}