From the course: Master React 19 and Next.js 16 with Hands-On Projects and Real-World Applications

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Building the footer component

Building the footer component

Welcome to this session on building a footer component for our React Story Collection app. In this session, we'll create a footer that displays a friendly message, uses a heart icon, shows copyright information, and supports dynamic language translation. Let's get started. Moving to footer.jsx. Now I am importing useLanguage from our language context. This hook allows us to access the translation function T, which we'll use to display translated text in our footer. I am adding the UseLanguageHook call inside the Footer functional component. Now we have access to the translation function inside our footer, which is assigned to the variable T. This will allow us to translate text within our footer dynamically based on the user's selected language. To create a proper footer structure, I am replacing the div with the semantically correct footer tag. This helps screen readers and search engines understand the content better. I am adding a div with the class name container inside our…

Contents