Building components
Now that the Chakra UI setup is in place, we can build the components. In the starting files for this chapter, we already have some default components exported. For now, we can render them on the landing page defined in src/pages/index.tsx
as follows:
import { Button } from '@/components/button'; import { InputField } from '@/components/form'; import { Link } from '@/components/link'; const LandingPage = () => { return ( <> <Button /> <br /> <InputField /> <br /> <Link /> </> ); }; export default LandingPage;
To start the application development server, we need to run the following:
npm run dev
This will make the newly created page...