- Custom Elements
- Shadow DOM
- HTML Imports
- HTML Templates
I'm confused as to which bits I need supported. Do I need all of them to blindy create and use other components?
| const User = props => <p>This would render a user</p> | |
| class Users extends React.Component { | |
| // has this.state.users which is an array from an API | |
| // not gonna bother writing the code to fetch that... | |
| render() { | |
| return ( | |
| <div> | |
| <h2>The users</h2> | |
| <ul> |
| case 'TOGGLE_TODO': | |
| const todos = state.todos.map((todo) => { | |
| if (todo.id === action.id) { | |
| todo.done = !todo.done; | |
| } | |
| return todo; | |
| }); | |
| return { todos }; |
| function foo({ text, user: { screen_name: screenName }}) { | |
| console.log('text', text); | |
| console.log('name', screenName); | |
| } | |
| foo({ | |
| text: 'hello world', | |
| user: { screen_name: 'Jack' }, | |
| }); |
I hereby claim:
To claim this, I am signing this object:
| var Q = require('Q'); | |
| var fs = require('fs'); | |
| var generator = Q.async(function* () { | |
| yield 10 | |
| console.log('yielded 10'); | |
| yield 20 | |
| console.log('yielded 20'); | |
| yield 30 |
| def double(x) | |
| x * 2 | |
| end | |
| p [1,2,3].map(&method(:double)) | |
| # [2, 4, 6] |
| class Hodor | |
| def method_missing(sym) | |
| 'Hodor' | |
| end | |
| end | |
| puts Hodor.new.hello | |
| puts Hodor.new.blahblah |
| Team Bibs | |
| - Jack | |
| - Grant "The Rock" Heywood | |
| - Kyam | |
| - Matt P | |
| - Dave "Stepovers" Kelly | |
| - Dan "Stripper" Dineen | |
| - Darren | |
| Team STINKYFACES |
| module.exports = function(app) { | |
| var lookup = { | |
| 'NOT_STARTED': 'not started', | |
| 'STARTED': 'started', | |
| 'BLOCKED': 'blocked' | |
| }; | |
| app.filter('prettyState', () => (input) => lookup[input]); | |
| app.filter('prettyState', function() { | |
| return function(input) { |