diff --git a/README.md b/README.md index f92423f..e2bb78f 100644 --- a/README.md +++ b/README.md @@ -7,16 +7,20 @@ Arix is a front-end framework based on JSX, but it doesn't have hooks like React ```tsx import * as airx from 'airx' -const outsideCount = airx.createRef(1) +// create a reaction value +const outsideCount = airx.createSignal(1) +// define a component function App() { - const innerCount = airx.createRef(1) + // create a reaction value + const innerCount = airx.createSignal(1) const handleClick = () => { innerCount.value += 1 outsideCount.value +=1 } + // return a render function return () => (