Skip to content

Instantly share code, notes, and snippets.

View yarastqt's full-sized avatar
⚛️
Hello from the dark side

Eugene Tropin yarastqt

⚛️
Hello from the dark side
View GitHub Profile
@yarastqt
yarastqt / react-router-effector-bind.ts
Created January 31, 2024 10:10 — forked from den-churbanov/react-router-effector-bind.ts
Effector bindings for react-router-dom v.6.2.1
import { useContext } from 'react';
import { createStore, createEffect, createEvent, sample, attach, combine, restore } from 'effector';
import { spread, debug, not, and, empty, or } from 'patronum';
import { createGate, useGate } from 'effector-react';
import {
useLocation,
useNavigate,
matchPath,
generatePath,
RouteMatch,