Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // App.tsx
- import 'styles/app.global.scss'; // Import the global styles once in the top-most App component
- import styles from './app.scss'; // Import modular styles for the App component
- import React from 'react';
- import cx from 'classnames'; // Optional classname helper library
- import { Header } from './Header';
- export const App = () => (
- <div className={cx('container', styles.container)}> // Apply both a global class and a modular class
- <Header />
- </div>
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement