Our great sponsors
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
As it turns out, there's quite a lot we can do! So today we're going to be building a simple Spotify playlist preview with Next.js! Here's a preview we're going to be building, or you can browse the source code.
First off, choose a React boilerplate or framework of choice. I'm using Next.js because... well it's awesome and I use it for everything, but you can do this in something like Create React App as well. I'll also be using Tailwind for super quick styling.
Here's how we can modify our play() function from earlier to handle these cases nicely by showing a toast:
First off, choose a React boilerplate or framework of choice. I'm using Next.js because... well it's awesome and I use it for everything, but you can do this in something like Create React App as well. I'll also be using Tailwind for super quick styling.