UNPKG
hg-sid
Version:
latest (0.1.3)
0.1.3
a front-end simple framework with mvc
github.com/hamger/sid
hamger/sid
hg-sid
/
demo
/
todolist
/
view2.js
17 lines
(16 loc)
•
265 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import
sid
from
'@'
import
Title
from
'./components/Title'
export
default
sid.
extend
({
render
(h) {
return
(
<
div
>
<
Title
title
=
{this.title}
/>
</
div
>
) },
data
:
function
(
) {
return
{
title
:
'this is view2'
} } })