Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ilharp/react-cordis
Real React for Cordis, like Server Components
https://github.com/ilharp/react-cordis
cordis react react-reconciler reactjs reconciler render renderer
Last synced: 21 days ago
JSON representation
Real React for Cordis, like Server Components
- Host: GitHub
- URL: https://github.com/ilharp/react-cordis
- Owner: ilharp
- License: mit
- Created: 2024-02-06T18:20:15.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-02-07T09:22:21.000Z (11 months ago)
- Last Synced: 2024-10-26T16:53:14.397Z (2 months ago)
- Topics: cordis, react, react-reconciler, reactjs, reconciler, render, renderer
- Language: TypeScript
- Homepage:
- Size: 149 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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}
Increase
Decrease
>
)
}```
## LICENSE
MIT