update readme

This commit is contained in:
dntzhang 2018-11-03 21:17:28 +08:00
parent 8722cda5c8
commit e7a1a3e0dc
3 changed files with 8 additions and 1 deletions

View File

@ -224,6 +224,8 @@ define('my-counter', function() {
}
})
this.useCss(`button{ color: red; }`)
return (
<div>
<button onClick={() => setCount(count - 1)}>-</button>

View File

@ -221,7 +221,10 @@ import { define, render } from 'omi'
document.title = `The num is ${this.data}.`
}
})
return (
this.useCss(`button{ color: red; }`)
return (
<div>
<button onClick={() => setCount(count - 1)}>-</button>
<span>{count}</span>

View File

@ -222,6 +222,8 @@ define('my-counter', function() {
}
})
this.useCss(`button{ color: red; }`)
return (
<div>
<button onClick={() => setCount(count - 1)}>-</button>