scrimba
Learn class components in React
Lifecycle methods: componentDidMount() 👶
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Lifecycle methods: componentDidMount() 👶
AboutCommentsNotes
Lifecycle methods: componentDidMount() 👶
Expand for more info
App.js
run
preview
console
import React from "react"

export default class App extends React.Component {
state = {
character: {}
}

/**
* Goal: get the first character from the Star Wars
* API and display the name on the screen
*/



render() {
return (
<h1>Hello</h1>
)
}
}
Console
/index.html
-6:30