)
} else {
diff --git a/examples/realworld/ext/UserProfilePage.js b/examples/realworld/ext/UserProfilePage.js
new file mode 100644
index 000000000..1b4747396
--- /dev/null
+++ b/examples/realworld/ext/UserProfilePage.js
@@ -0,0 +1,38 @@
+import React, { useState } from 'react'
+import { Link, useHistory } from 'react-router-dom'
+
+import useAuth from '@wasp/auth/useAuth.js'
+import logout from '@wasp/auth/logout.js'
+import updateUser from '@wasp/actions/updateUser'
+import getUser from '@wasp/queries/getUser'
+import { useQuery } from '@wasp/queries'
+
+const UserProfilePage = (props) => {
+ const history = useHistory()
+
+ const username = props.match.params.username
+ const { data: user, error: userError } = useQuery(getUser, { username })
+
+ console.log(user, userError)
+ if (userError) {
+ console.log(userError)
+ history.push("/")
+ }
+
+ // TODO: There is no navbar right now, but there should be one! It is only on Main page.
+ // I wish I had a "layout" mechanism that I would apply on certain pages
+ // and they would all have this same layout.
+ // For now, I should probably implement a HOC that will take care of this.
+
+ return user ? (
+
+
{ user.username }
+
{ user.bio }
+
+ Edit Profile Settings
+
+
+ ) : null
+}
+
+export default UserProfilePage
diff --git a/examples/realworld/ext/UserSettingsPage.js b/examples/realworld/ext/UserSettingsPage.js
new file mode 100644
index 000000000..6d0a44836
--- /dev/null
+++ b/examples/realworld/ext/UserSettingsPage.js
@@ -0,0 +1,120 @@
+import React, { useState } from 'react'
+import { Link, useHistory } from 'react-router-dom'
+
+import useAuth from '@wasp/auth/useAuth.js'
+import logout from '@wasp/auth/logout.js'
+import updateUser from '@wasp/actions/updateUser'
+
+const UserSettingsPage = () => {
+ const { data: user, isError } = useAuth({ keepPreviousData: true })
+ // TODO: Instead of this logic here, I wish I could use ACL via Wasp and just
+ // receive user via props instead of useAuth().
+ if (!user || isError) {
+ return Please log in.
+ }
+
+ // TODO: There is no navbar right now, but there should be one! It is only on Main page.
+ // I wish I had a "layout" mechanism that I would apply on certain pages
+ // and they would all have this same layout.
+ // For now, I should probably implement a HOC that will take care of this.
+
+ return (
+