Add Effect v4 support, Fast Refresh tooling, and revamped docs #56
@@ -24,7 +24,7 @@ For a web application, install Effect View with Effect 4 and React 19.2 or
|
|||||||
newer:
|
newer:
|
||||||
|
|
||||||
```bash npm2yarn
|
```bash npm2yarn
|
||||||
npm install effect-view effect react react-dom
|
npm install effect-view effect@beta react react-dom
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash npm2yarn
|
```bash npm2yarn
|
||||||
@@ -52,13 +52,6 @@ const AppLive = Layer.empty.pipe(
|
|||||||
export const runtime = ReactRuntime.make(AppLive)
|
export const runtime = ReactRuntime.make(AppLive)
|
||||||
```
|
```
|
||||||
|
|
||||||
Use `Layer.empty` by itself when the application does not need any additional
|
|
||||||
services yet:
|
|
||||||
|
|
||||||
```tsx
|
|
||||||
export const runtime = ReactRuntime.make(Layer.empty)
|
|
||||||
```
|
|
||||||
|
|
||||||
Keep the runtime stable. Creating it during a React render would create new
|
Keep the runtime stable. Creating it during a React render would create new
|
||||||
managed resources and a new React context on every render.
|
managed resources and a new React context on every render.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user