---
layout: tutorial
title: Create ideas page
description: Add database queries and pagination using Appwrite in your React application.
step: 7
---
Using the `useIdeas` hook we can now display the ideas on the page. We will also add a form to submit new ideas.
Overwrite the contents of `src/pages/Home.jsx` with the following:
```client-web
import { useState } from "react";
import { useUser } from "../lib/context/user";
import { useIdeas } from "../lib/context/ideas";
export function Home() {
const user = useUser();
const ideas = useIdeas();
const [title, setTitle] = useState("");
const [description, setDescription] = useState("");
return (
<>
{/* Show the submit form to logged in users. */}
{user.current ? (
Please login to submit an idea. {idea.description}Submit Idea
Latest Ideas
{ideas.current.map((idea) => (