Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import React from 'react';
import PropTypes from 'prop-types';
class ColorSwatchClass extends React.Component {
constructor(props) {
render = () => {
return (
<div style={style}>
ColorSwatchClass.PropTypes = {
color: PropTypes.string.isRequired,
text: PropTypes.string.isRequired
export default ColorSwatchClass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.