create-slots
create-slots copied to clipboard
Bring slots to React component
Server Components are being added to React: - https://github.com/reactjs/rfcs/pull/188 - https://beta.nextjs.org/docs/rendering/server-and-client-components Server Components must avoid Client Component APIs, such as `useEffect`, etc. Some shared APIs like `forwardRef` and `useId` are...
do we really need this wrapper component that does nothing but pass props with the same names to the neighboring react component https://github.com/nihgwu/create-slots/blob/bf26e21eeb10f965e8d1041355f6a5312a283932/src/index.tsx#L45-L47