Created
December 26, 2018 13:17
-
-
Save awinogradov/11c49667c379a66564a3b41ef483f740 to your computer and use it in GitHub Desktop.
React & BEM: one more collaboration. [email protected]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Elem } from 'bem-react-core'; | |
import { Button } from '../Button'; | |
export class AppHeader extends Elem { | |
block = 'App'; | |
elem = 'Header'; | |
tag() { | |
return 'h2'; | |
} | |
content() { | |
return ( | |
<Button>Я кнопка</Button> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment