<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-to-upgrade-to-react-18-up5dxuqoa" -->

---
title: How to Upgrade to React 18 | daily.dev
description: A guide to upgrading from React 17 to React 18 (release candidate). Covers installing the new packages via npm or yarn, upgrading Create React App to v5,...
canonical: https://daily.dev/posts/how-to-upgrade-to-react-18-up5dxuqoa
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How to Upgrade to React 18 | daily.dev
og:description: A guide to upgrading from React 17 to React 18 (release candidate). Covers installing the new packages via npm or yarn, upgrading Create React App to v5,...
og:url: https://daily.dev/posts/how-to-upgrade-to-react-18-up5dxuqoa
og:image: https://api.daily.dev/og/posts/uP5DXUQOa.png
og:image:alt: How to Upgrade to React 18
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Upgrade to React 18

**[Playful Programming](https://daily.dev/sources/playfulprogramming)** · [@crutchcorn](https://daily.dev/crutchcorn) · 3 min read · 0 upvotes · 0 comments

## Summary

A guide to upgrading from React 17 to React 18 (release candidate). Covers installing the new packages via npm or yarn, upgrading Create React App to v5, updating dependent libraries like React Redux and SWR, and replacing the deprecated ReactDOM.render() call with the new ReactDOM.createRoot() API. Also notes potential edge cases around Strict Mode changes and automatic batching.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://playfulprogramming.com/posts/how-to-upgrade-to-react-18>

## Similar posts on daily.dev

- [React 19 Upgrade in WordPress](https://daily.dev/posts/react-19-upgrade-in-wordpress-s4ndgbrgd) · Make WordPress Core · 37 upvotes · 7 comments
- [What's New in React 19](https://daily.dev/posts/what-s-new-in-react-19-yrxttfqhf) · Kirupa · 1 upvotes · 1 comments
- [React Status Issue 457: January 9, 2026](https://daily.dev/posts/react-status-issue-457-january-9-2026-d2doq44q3) · React Status · 15 upvotes · 0 comments
- [React 19.3 – React](https://daily.dev/posts/react-19-3-react-sfqiftbgy) · React · 209 upvotes · 26 comments
- [React 19 Compiler: What Senior Developers Need to Know](https://daily.dev/posts/react-19-compiler-what-senior-developers-need-to-know-smq3uiudw) · SitePoint · 88 upvotes · 6 comments

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#javascript](https://daily.dev/tags/javascript), [#react](https://daily.dev/tags/react)

[View this post on daily.dev](https://daily.dev/posts/how-to-upgrade-to-react-18-up5dxuqoa)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How to Upgrade to React 18","url":"https://daily.dev/posts/how-to-upgrade-to-react-18-up5dxuqoa","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-to-upgrade-to-react-18-up5dxuqoa"},"datePublished":"2026-03-16T21:47:52.376Z","dateModified":"2026-03-17T18:00:33.278Z","description":"A guide to upgrading from React 17 to React 18 (release candidate). Covers installing the new packages via npm or yarn, upgrading Create React App to v5,...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/02d04f5eacb0fce72a6082318ef1983e?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/02d04f5eacb0fce72a6082318ef1983e?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Playful Programming","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Person","name":"Corbin Crutchley","url":"https://daily.dev/crutchcorn","image":"https://avatars.githubusercontent.com/u/9100169?v=4","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":400}},"commentCount":0,"discussionUrl":"https://daily.dev/posts/how-to-upgrade-to-react-18-up5dxuqoa","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"webdev,javascript,react","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Playful Programming","item":"https://daily.dev/sources/playfulprogramming"},{"@type":"ListItem","position":3,"name":"How to Upgrade to React 18"}]}
```

