Here you can easily get started with Unleash SDK and experiment.
Check out components/ClientComponent.tsx for the code. Flag provider is set up in app/page.tsx. Put you instance URL and API client token in .env
.
More advanced examples are available in Unleash/unleash-client-nextjs/example.