This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const machineDefinition = Machine({ | |
| id: 'KYC', | |
| initial: 'pre_init', | |
| context: { | |
| phoneNumber: null, | |
| supportsGetUserMedia: true, | |
| forcedDesktop: false, | |
| }, | |
| states: { | |
| pre_init: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Machine({ | |
| id: 'KYC', | |
| initial: 'intro', | |
| context: { | |
| }, | |
| states: { | |
| intro: { | |
| on: { | |
| NEXT: 'document_chooser' | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as React from "react"; | |
| import { render } from "react-dom"; | |
| import RemoteData from "ts-remote-data"; | |
| import { Machine, assign, DefaultContext } from "xstate"; | |
| import { useMachine } from "@xstate/react"; | |
| import { useEffect, useMemo, ReactNode } from "react"; | |
| import "./styles.css"; | |
| const URL = "https://jsonplaceholder.typicode.com/todos/1"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as React from "react"; | |
| import { render } from "react-dom"; | |
| import RemoteData from "ts-remote-data"; | |
| import "./styles.css"; | |
| import { useState, useEffect, ReactNode } from "react"; | |
| const URL = "https://jsonplaceholder.typicode.com/todos/1"; | |
| interface Todo { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as React from "react"; | |
| import { useState, useEffect, ReactNode } from "react"; | |
| import { render } from "react-dom"; | |
| import "./styles.css"; | |
| const URL = "https://jsonplaceholder.typicode.com/todos/1"; | |
| interface Todo { | |
| id: number; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as React from "react"; | |
| import { render } from "react-dom"; | |
| import { Machine, assign } from "xstate"; | |
| import { useMachine } from "@xstate/react"; | |
| import { useEffect, useMemo, ReactNode } from "react"; | |
| import "./styles.css"; | |
| const URL = "https://jsonplaceholder.typicode.com/todos/1"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as React from 'react'; | |
| import { ReactNode, useReducer } from 'react'; | |
| import { render } from 'react-dom'; | |
| import './styles.css'; | |
| const URL = 'https://jsonplaceholder.typicode.com/todos/1'; | |
| interface Todo { | |
| id: number; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as React from 'react'; | |
| import { render } from 'react-dom'; | |
| import { Machine, assign } from 'xstate'; | |
| import { useMachine } from '@xstate/react'; | |
| import { useEffect, useMemo, ReactNode } from 'react'; | |
| import './styles.css'; | |
| const URL = 'https://jsonplaceholder.typicode.com/todos/1'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Quiz | |
| Slide | |
| check -> Checked Slide | |
| Checked Slide | |
| next -> Slide | |
| uncheck -> Slide | |
| done -> Results | |
| Results | |
| reset -> Slide |
NewerOlder