本文整理匯總了TypeScript中@cycle/dom.h3函數的典型用法代碼示例。如果您正苦於以下問題:TypeScript h3函數的具體用法?TypeScript h3怎麽用?TypeScript h3使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了h3函數的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: h3
const getDom = ({ sha, commit: { message, author: { name, email, date } } }: Commit) => [
h3([message.split('\n\n')[0]]),
h4([strong([name])]),
h4([email]),
h4([em([date])]),
p([message.split('\n\n')[1] || ''])
];
示例2: app
function app() {
return {
html: xs.of(
h('.test-element', [
div([h2('.a', 'a'), h('h4.b', 'b'), h('h1.fooclass')]),
div([h3('.c', 'c'), h('div', [h('p.d', 'd'), h('h2.barclass')])]),
]),
),
};
}
示例3: vTitle
function vTitle() {
return div('#title', [
h1([
img({props: {src: 'Rx_Logo_S.png'}}),
a(
{props: {href: 'https://github.com/wizardwerdna/FRPBowlingKata'}},
'FRP Bowling'
),
img({props: {src: 'CycleJS_Logo.png'}}),
]),
h3('The Classic Kata in RxJS and CycleJS')
]);
}
示例4: getDom
const contents$ = loaded$.map(loaded =>
loaded
? details$.map(commit => getDom(commit))
: xs.of([h3(['Loading...'])])