Skip to content

Commit

Permalink
fix: step 1 of setting up src directory added proper additional import
Browse files Browse the repository at this point in the history
small patch to this step to correct an error that takes place in step 3 with the createRoot method - found by #sean via discord
  • Loading branch information
jwafu authored Feb 4, 2024
1 parent b45923e commit b25a1d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,10 @@ Inside the `src` directory, add two files:

Once you open `index.tsx` you should follow these steps to get your base Application window created:

1. Import the full react library at the top of your file, along with a single import from `react-dom`:
1. Import the full react library at the top of your file, along with a single import from `react-dom`, and the createRoot method:
```tsx
import * as React from "react";
import {createRoot} from "react-dom/client";
import { render } from 'react-dom';
```

Expand Down

0 comments on commit b25a1d4

Please sign in to comment.