1 | import React from 'react';
|
2 |
|
3 | import withStyles from './withStyles';
|
4 | import ComponentB from './ComponentB';
|
5 |
|
6 | export default withStyles(() => ({
|
7 | ComponentA_primary: { color: 'red' },
|
8 | ComponentA_secondary: { color: 'blue' },
|
9 | }))(function ComponentA() {
|
10 | return (
|
11 | <div>
|
12 | <ComponentB />
|
13 | </div>
|
14 | );
|
15 | });
|