* change root dit and change way to import modules * update deps to latest versions * use latest tools for building bundles * rewrite webpack config * use nomodule technique for loading modern bundle * inject polyfills by babel usebuiltins * update eslint rules * rename all style files to CSS * use postcss preset env for building styles * proper typescript typing * put all html files to templates folder * etc
11 lines
254 B
TypeScript
11 lines
254 B
TypeScript
import { h, FunctionComponent } from 'preact';
|
|
import b, { Mix } from 'bem-react-helper';
|
|
|
|
interface Props {
|
|
mix?: Mix;
|
|
}
|
|
|
|
const Preloader: FunctionComponent<Props> = ({ mix }) => <div className={b('preloader', { mix })} />;
|
|
|
|
export default Preloader;
|