August 2017
Beginner
374 pages
10h 41m
English
Now we can (re-)render our user interface every time the state changes. To keep it simple, we will not use a library yet. Perform the following steps and edit the src/index.js file, adding the following code:
const root = document.getElementById('root')
const render = () => {
root.innerHTML = ''
const { posts } = store.getState()
posts.forEach((post) ...
Read now
Unlock full access