Skip to content

Instantly share code, notes, and snippets.

@maniax89
maniax89 / MyComponent.cmp
Created March 20, 2018 16:19
Salesforce Design Token
<aura:component
implements="flexipage:availableForRecordHome,force:lightningQuickActionWithoutHeader,force:hasRecordId"
controller="QueryController"
access="global"
>
<ltng:require
scripts="{!join(',',
$Resource.babelHelpers,
$Resource.actions,
$Resource.reducers)}"
@maniax89
maniax89 / Home.jsx
Created July 27, 2016 20:52
React-Intl with Enzyme
import React from 'react';
import messages from './messages.js';
import { Link } from 'react-router';
import {FormattedMessage, injectIntl, intlShape} from 'react-intl';
class Home extends React.Component {
render() {
const t = this.props.intl.formatMessage;
return (
<div>