-
Fast in browser testing
- Hot reload app
- Only run tests related to hot patched code
-
Simple website build platform
- Stateful SSR
- Set routes as static in route config to be generated at build time
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
| /** | |
| * Determine if the current browser is IE 11 | |
| */ | |
| export const isIE11 = (): boolean => { | |
| return !!window.MSInputMethodContext && !!document.documentMode; | |
| }; |
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 React from "react"; | |
| export const DefaultErrorFallback = () => { | |
| return <span>Oops! Failed to load...</span>; | |
| }; |
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 { Selector, t } from "testcafe"; | |
| import { waitUntilTrue } from "./utils"; | |
| /** | |
| * Build test id selector string | |
| */ | |
| export const byTestId = (testId: string) => { | |
| return `[data-testid="${testId}"],[data-test-id="${testId}"]`; | |
| }; |
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 React from "react"; | |
| import styled from "styled-components"; | |
| import { Box } "./some-styled-system"; | |
| import { useBreakpoints } from "./use-breakpoints"; | |
| // Very contrived example | |
| const ColoredBox = styled.div<{ isRed: Boolean; isBlue: boolean }>` | |
| width: 100px; | |
| height: 100px; |
I hereby claim:
- I am leecheneler on github.
- I am lacheneler (https://keybase.io/lacheneler) on keybase.
- I have a public key ASAyZnwZx1KKed8kGZYDRqqZKnYdxd4yHvKu5B2EY_3CxAo
To claim this, I am signing this object:
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
| # git aliases | |
| alias g="git" | |
| alias ga="git add -A" | |
| alias gc="git commit" | |
| alias gcm="git commit -m" | |
| alias gp="git push" | |
| alias gch="git checkout" | |
| alias gpu="git pull" | |
| alias gb="git branch" |
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
| kill -9 $(lsof -t -i:3000) |
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 React from 'react' | |
| import Flag from './Flag' | |
| const Consumer = () => ( | |
| <Flag.Wrapper spacer="md"> | |
| <Flag.Component>Component</Flag.Component> | |
| <Flag.Body>Body</Flag.Body> | |
| </Flag.Wrapper> | |
| ) |
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 { useState, useEffect } from 'react'; | |
| // Usage | |
| function App() { | |
| // Similar to useState but we pass in a key to value in local storage | |
| // With useState: const [name, setName] = useState('Bob'); | |
| const [name, setName] = useLocalStorage('name', 'Bob'); | |
| return ( | |
| <div> |