Skip to content

Instantly share code, notes, and snippets.

@rodoabad
Last active February 2, 2019 04:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rodoabad/846106149251841eda58d6d1d0235f1d to your computer and use it in GitHub Desktop.
Save rodoabad/846106149251841eda58d6d1d0235f1d to your computer and use it in GitHub Desktop.
import * as React from 'react';
import {MyComponent} from './MyComponent';
import {consumingComponent} from './ConsumingComponent.scss';
const ConsumingComponent = () => (
<MyComponent
HeaderProps={{
color: 'red'
data-testid='consuming-component-header'
type: 'compact'
}}
GreetingProps={{
color: 'blue'
data-testid='consuming-component-greeting'
message: 'Hello World'
}}
className={consumingComponent}
data-testid='consuming-component'
/>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment