diff --git a/README.md b/README.md new file mode 100644 index 0000000..2299b24 --- /dev/null +++ b/README.md @@ -0,0 +1,36 @@ +# react-cordis + +Real React for Cordis, like Server Components. + +Heavily under constructing. + +## Sample + +```tsx +import { useCallback, useState } from 'react' +import { render } from 'react-cordis-notifier' + +export function apply(ctx: Context) { + render(ctx, ) +} + +function Counter() { + const [count, setCount] = useState(0) + + const increase = useCallback(() => setCount((x) => x + 1), []) + const decrease = useCallback(() => setCount((x) => x - 1), []) + + return ( + <> +

Current: {count}

+ + + + ) +} + +``` + +## LICENSE + +MIT