Skip to content

Instantly share code, notes, and snippets.

Avatar

Peter Shev pshev

  • Chisinau, Moldova
View GitHub Profile
@pshev
pshev / header.js
Created Feb 16, 2018
preact-fela basic usage
View header.js
import {h} from 'preact'
import {connect} from 'preact-fela'
const Header = ({title, styles}) =>
<header className={styles.container}>
<h1 className={styles.title}>{title}</h1>
</header>
const container = () => ({
textAlign: 'center',
@pshev
pshev / header.js
Created Feb 16, 2018
preact-fela basic usage
View header.js
import {h} from 'preact'
import {style} from 'preact-fela-simple'
const Header = ({title, styles}) =>
<header className={styles.container}>
<h1 className={styles.title}>{title}</h1>
</header>
const styles = ({theme, size}) => ({
container: {