Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cchampou/react18

Just testing new React version 18, in beta.
https://github.com/cchampou/react18

Last synced: about 2 months ago
JSON representation

Just testing new React version 18, in beta.

Awesome Lists containing this project

README

        

# react18
Just testing new React version 18, in beta.

## Started from here

[Public beta announcement](https://github.com/reactwg/react-18/discussions/112)

## The tests

### `useId` hook

I'm just curious about what it generates, let's see.

```javascript
const MyInput = () => {
const id = useId();

return createElement('input', { id });
}

console.log(renderToString(createElement(MyInput)));
```

It gives me this output: ``.

Okay, let's try it later on a client side execution!

... *[A few moments later](https://www.youtube.com/watch?v=-2Z0Y3Kk8nU)*

I just added [Vite](https://vitejs.dev/) as a bundler in a few minutes to have a webpage
rendering my React code.

```html


```

Seems like it's going to be consistent.

## Let's server side render