November 2018
Beginner
502 pages
10h 22m
English
We'll start off by getting the posts using a basic GET request with axios, and then rendering them in an unordered list:
import axios from "axios";
interface IPost { userId: number; id?: number; title: string; body: string;}
interface IState { posts: IPost[];}class App extends React.Component<{}, IState> { ... }
class App extends React.Component<{}, IState> { public constructor(props: {}) { super(props); this.state = { posts: ...Read now
Unlock full access