update readme
This commit is contained in:
parent
8722cda5c8
commit
e7a1a3e0dc
|
@ -224,6 +224,8 @@ define('my-counter', function() {
|
|||
}
|
||||
})
|
||||
|
||||
this.useCss(`button{ color: red; }`)
|
||||
|
||||
return (
|
||||
<div>
|
||||
<button onClick={() => setCount(count - 1)}>-</button>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue