Skip to content

Instantly share code, notes, and snippets.

View nurmuhammadsirat's full-sized avatar

Nur Muhammad Sirat nurmuhammadsirat

View GitHub Profile
# Jump word back
option + left
Send escape sequence
b
# Jump word forward
option + right
Send escape sequence
@nurmuhammadsirat
nurmuhammadsirat / Component.tsx
Last active May 23, 2023 08:58
React context pattern (typescript)
import { MyContextProvider } from './MyContextProvider;
import { SubComponent } from './SubComponent;
const Component = () => {
return (
<MyContextProvider>
<SubComponent> ... </SubComponent>
</MyContextProvider>
);
}