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
| { | |
| "feature1": ["[email protected]"] | |
| } |
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
| [ | |
| { | |
| "id": "38016cdf-03fe-4a3b-a9df-8411bf43876c", | |
| "firstName": "Orren", | |
| "lastName": "Priest", | |
| "email": "[email protected]", | |
| "photo": "https://robohash.org/repudiandaeaeligendi.png?size=50x50&set=set1", | |
| "department": "Support" | |
| }, | |
| { |
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
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
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 useQuery from './useQuery' | |
| import gql from 'graphql-tag' | |
| type Props = { | |
| projectId: string | |
| } | |
| export default function Project(props: Props) { | |
| const { data, loading } = useQuery({ | |
| query: gql` |
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
| badge(options, song => { | |
| // { | |
| // "icon": 'https://developers.soundcloud.com/assets/logo_black.png', | |
| // "image_url": "user or artwork url", | |
| // "song_title": "Hello", | |
| // "song_url": "x", | |
| // "artist_name": "x", | |
| // "artist_url": "x", | |
| // "stream_url": "http://soundcloud.com/song/x?client_id=1212212" | |
| // } |
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
| var MyButton = { | |
| defaultProps: { | |
| color: 'red' | |
| }, | |
| render: function () { | |
| return { | |
| type: 'button' | |
| } | |
| } | |
| } |
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
| let propTypes = { | |
| 'hello': { type: 'string' } | |
| } | |
| let ref = function (name) { | |
| return e => e.target.ref === name | |
| } | |
| let eventType = function (name) { |
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
| const Parent = { | |
| render (component, updateState) { | |
| function onChange () { | |
| updateState({ parentChanged: 'yay' }) | |
| } | |
| return <Child onChange={onChange} /> | |
| } | |
| } |
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
| var deku = require( 'deku' ); | |
| // Create a component | |
| var HelloWorld = { | |
| render: function(c) { | |
| return deku.element( 'div', {}, [c.props.text] ); | |
| } | |
| } | |
| // Create a tree |
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 styles from './styles.css' | |
| export default ({props,state}) => { | |
| <div> | |
| <style scoped>{styles}</style> | |
| <h1>Hello World</h1> | |
| </div> | |
| } |
NewerOlder