Skip to content

Instantly share code, notes, and snippets.

@tehfailsafe
tehfailsafe / 0 PlanList.jsx
Last active August 29, 2015 14:23
Alt edit single item in a list. Submits request to Rails api which then updates the Stripe API and awaits response. I can't tell where the single plan update happens and gets sent back to the plan list as props.
class PlanList extends Component {
static getStores(){
return [PlanStore];
}
static getPropsFromStores(){
return PlanStore.getState();
}
componentDidMount(){
@tehfailsafe
tehfailsafe / designer.html
Last active August 29, 2015 14:13
designer
<link rel="import" href="../topeka-elements/theme.html">
<link rel="import" href="../topeka-elements/topeka-resources.html">
<link rel="import" href="../topeka-elements/topeka-app.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;