Skip to content

Next.js utility component to render children on client-side only

Notifications You must be signed in to change notification settings

BKWLD/next-client-only

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Next Client Only

Render components on client-side only. Usage:

import { ClientOnly } from '@bkwld/next-client-only'

export default MyComponent = () => {
	return (
    	<ClientOnly>
        	<div>This will not be a part of the server side renderd template</div>
        </ClientOnly>
    )
}

About

Next.js utility component to render children on client-side only

Resources

Stars

Watchers

Forks

Packages

No packages published