showing results for - "state functions of react cheatsheet"
Lindsay
03 Nov 2016
1this.forceUpdate()
2
Charissa
06 Jan 2021
1import React, {Component} from 'react'
2import ReactDOM from 'react-dom'
3
Arisha
15 Mar 2016
1render () {
2  this.state.username
3  const { username } = this.state
4  ···
5}
6 
7 
8
Frances
03 Jul 2017
1class Hello extends Component {
2  ...
3}
4
Marlene
28 Sep 2017
1import React, {
2  Component,
3  Fragment
4} from 'react'
5
6class Info extends Component {
7  render () {
8    const { avatar, username } = this.props
9
10    return (
11      <Fragment>
12        <UserAvatar src={avatar} />
13        <UserProfile username={username} />
14      </Fragment>
15    )
16  }
17}
18
Louisa
07 Jan 2018
1const el = document.body
2ReactDOM.render(<Hello name='John' />, el)
3
Cade
01 Aug 2020
1constructor(props) {
2  super(props)
3  this.state = { username: undefined }
4}
5