Skip to content

Instantly share code, notes, and snippets.

View g-todorov's full-sized avatar

Georgi g-todorov

View GitHub Profile
@g-todorov
g-todorov / ChildComponent.tsx
Created December 16, 2022 08:28
xstate-typed-children-machines
import React from "react";
import { Text } from "react-native";
import { useActor } from "@xstate/react";
import { ChildMachineActor } from "../machines/childMachine";
interface Props {
actor: ChildMachineActor;
}
export function ChildComponent({ actor }: Props) {