Skip to content

Commit

Permalink
update image url
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank1513 committed Jul 31, 2023
1 parent 7810ccb commit daaf8ba
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# esbuild-react18-useclient

<img src="./esbuild-react18-useclient\esbuild-react18.jpg?raw=true" title="Build Awesome Libraries using React Server Components and make your Mark!" style="width:100%"/>
<img src="https://github.com/mayank1513/esbuild-react18-useclient/blob/main/esbuild-react18.jpg?raw=true" title="Build Awesome Libraries using React Server Components and make your Mark!" style="width:100%"/>

> Build Awesome Libraries using React Server Components and make your Mark!
This is an `esbuild` plugin for compiling libraries compatible with React 18 server and client component, Nextjs13, Remix, etc.

Introduction of React server components in React 18 has unlocked immense possibilities. However, library authors are not yet able to fully encash upon this potential. Many libraries like `chakra-ui`, simply add "use client" for each component. However, much more can be unlashed when we can use both server and client components to build libraries.
Introduction of React server components in React 18 has unlocked immense possibilities. However, library authors are not yet able to fully encash upon this potential. Many libraries like `chakra-ui`, simply add "use client" for each component. However, much more can be unlashed when we can use both server and client components to build libraries.

This plugin seamlessly integrates with `tsup` and other builders based on `esbuild`. With this you can have both server and client components in your library and the plugin will take care of the rest. All you need to do is add this plugin and add `"use client";` on top of client components.

Expand All @@ -22,14 +22,12 @@ or
pnpm add -D esbuild-react18-useclient
```

or
or

```bash
npm install -D esbuild-react18-useclient
```



## Use with `tsup`

```javascript
Expand All @@ -43,8 +41,6 @@ export default defineConfig(options => ({
}));
```



## License

Licensed as MIT open source.
Licensed as MIT open source.

0 comments on commit daaf8ba

Please sign in to comment.