diff --git a/packages/react/README.md b/packages/react/README.md index 24943df2..2252246d 100644 --- a/packages/react/README.md +++ b/packages/react/README.md @@ -139,7 +139,7 @@ The `` component will render a list of entities. It takes a `in` prop import { ECS } from "./state" import { AsteroidModel } from "./models" -const asterois = ECS.world.with("isAsteroid") +const asteroids = ECS.world.with("isAsteroid") const Asteroids = () => ( @@ -156,7 +156,7 @@ When used this way, it will automatically re-render every time the list of entit import { ECS } from "./state" import { AsteroidModel } from "./models" -const asterois = ECS.world.with("isAsteroid") +const asteroids = ECS.world.with("isAsteroid") /* Note the .entities property! */ const Asteroids = () => (