To replace the React components in the existing app, start by creating DOM elements. In this video, use the createElement method to begin building out a virtual DOM.
And then before the updateActivityList function call,…we'll start our DOM manipulation code…with statements to create elements.…So, looking at the JSX…for this React component,…we can see that the structure consists of a div element…and within that two p elements…and within the second p element an image element.…And if you're not so familiar with React,…
- Replacing jQuery Ajax requests with Fetch requests
- Implementing data binding
- Replacing simple animations
- Ensuring backwards compatibility