Skip to content

Instantly share code, notes, and snippets.

View kevinguard's full-sized avatar

Kevin Ghaboosi kevinguard

View GitHub Profile
@kevinguard
kevinguard / SampleComponent.js
Created November 13, 2017 04:30 — forked from yamadayuki/SampleComponent.js
Use keyframes property with React using inline style
import React from 'react';
import injectStyle from './path/to/injectStyle';
export default class SampleComponent extends React.Component {
constructor(props) {
super(props);
const keyframesStyle = `
@-webkit-keyframes pulse {
0% { background-color: #fecd6d; }
@kevinguard
kevinguard / draftjs_inline_equations.js
Created October 22, 2016 20:49 — forked from afraser/draftjs_inline_equations.js
Demonstrates inline equations with copy/paste supported in draft.js
<!--
Copyright (c) 2013-present, Facebook, Inc. All rights reserved.
This file provided by Facebook is for non-commercial testing and evaluation
purposes only. Facebook reserves all rights not expressly granted.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN