-
Download this gist into a
csscompare
folder -
npm install
-
Create
before
andafter
folders. Your folder should now look like this:- /csscompare |- /after |- /before |- /npm_modules |- index.js
|- package.json
Download this gist into a csscompare
folder
npm install
Create before
and after
folders. Your folder should now look like this:
- /csscompare
|- /after
|- /before
|- /npm_modules
|- index.js
|- package.json
export const lines = { | |
h: '1.8em', | |
l: '1.6em', | |
m: '1.4em', | |
s: '1.2em', | |
x: '1', | |
n: '0', | |
} | |
export const _line = lines; |
Orta.vscode-jest | |
Shan.code-settings-sync | |
christian-kohler.npm-intellisense | |
christian-kohler.path-intellisense | |
codezombiech.gitignore | |
dbaeumer.vscode-eslint | |
esbenp.prettier-vscode | |
jasonlhy.vscode-browser-sync | |
jpoissonnier.vscode-styled-components | |
kumar-harsh.graphql-for-vscode |
import * as React from 'react' | |
const container: React.CSSProperties = { | |
width: '100%', | |
height: '100%', | |
display: 'grid', | |
gridTemplateColumns: '10rem 10rem 10rem 10rem' | |
} | |
const item: React.CSSProperties = { |
import * as React from "react"; | |
import { | |
Frame, | |
Data, | |
Animatable, | |
animate, | |
PropertyControls, | |
ControlType | |
} from "framer"; |
import { ControlType, PropertyControls } from "framer"; | |
import * as React from "react"; | |
interface TabWidgetProps { | |
selectedTab: number; | |
accentColor: string; | |
} | |
// inifinite scrolling of content without extra wrappers | |
const { render, findDOMNode } = ReactDOMFiber | |
class App extends React.Component { | |
render() { | |
// wrap the root element with an Intersection Observer, exposing .observe for children | |
return <Intersection> | |
<div style={{ height: 200, overflow: 'auto' }}> | |
<Page offset={0} count={10} /> | |
</div> |
import React from 'react'; | |
import TestUtils from 'react/lib/ReactTestUtils'; | |
import Todo from './Todo'; | |
describe('Todo', () => { | |
let instance, li; | |
let Wrapper = React.createClass({ | |
render: function() { | |
return this.props.children; | |
} |
static propertyControls: PropertyControls = { | |
text: { type: ControlType.String, title: 'Text' }, | |
fontSize: { | |
type: ControlType.FusedNumber, | |
toggleKey: 'fontPerBP', | |
toggleTitles: ['Font', 'Font per BP'], | |
valueKeys: ['font1', 'font2', 'font3', 'font4'], | |
valueLabels: theme.breakpoints.map(s => s.replace('px', '')), | |
min: 0, | |
title: 'Font Size', |