Skip to content

Instantly share code, notes, and snippets.

Awesome Personalization

A curated list of hand-picked resources about personalization inspired by the awesome-* trend on GitHub.

The goal is to build a categorized, community-driven collection of excellent resources on the topic. I've been on a steep learning curve on personalization since I founded Croct, so I tried to catalog my resources to help others.

Want to contribute to growing or improving this? Sharing, suggestions, and contributions are always welcome! Please take a look at the contribution guidelines first.

Basics (Start Here)

@marcandrewb
marcandrewb / GlobalStateProvider.tsx
Created January 19, 2023 20:40 — forked from evgeniyPP/GlobalStateProvider.tsx
XState global state machine hook
import { createContext } from 'react';
import { InterpreterFrom } from 'xstate';
import { useInterpret } from '@xstate/react';
import { someMachine } from './someMachine';
export const GlobalStateContext = createContext({ someService: {} as InterpreterFrom<typeof someMachine> });
export const GlobalStateProvider = (props: React.PropsWithChildren) => {
const someService = useInterpret(someMachine);