<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Gündoğdu Yakıcı</title>
    <description>The latest articles on Forem by Gündoğdu Yakıcı (@gundogduyakici).</description>
    <link>https://forem.com/gundogduyakici</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F231077%2F46442ab6-4dfa-4efa-8143-f8d3bb0fc337.png</url>
      <title>Forem: Gündoğdu Yakıcı</title>
      <link>https://forem.com/gundogduyakici</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/gundogduyakici"/>
    <language>en</language>
    <item>
      <title>Should I add a not-found.jsx file for each page?</title>
      <dc:creator>Gündoğdu Yakıcı</dc:creator>
      <pubDate>Fri, 31 Mar 2023 12:46:13 +0000</pubDate>
      <link>https://forem.com/gundogduyakici/should-i-add-a-not-foundjsx-file-for-each-page-4oo5</link>
      <guid>https://forem.com/gundogduyakici/should-i-add-a-not-foundjsx-file-for-each-page-4oo5</guid>
      <description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I have a not-found.jsx file under the App folder, and on some pages I redirect to the notFound() function for some situations and I see the design. However, no link works. It does not redirect. &lt;/p&gt;

&lt;p&gt;But if I add not-found.jsx in this page folder, it works fine. Do I have to add not-found.jsx to each page individually?&lt;/p&gt;

&lt;p&gt;My Next.js version is 13.2.3.&lt;/p&gt;

</description>
      <category>nextjs</category>
      <category>javascript</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Send background props to other component</title>
      <dc:creator>Gündoğdu Yakıcı</dc:creator>
      <pubDate>Wed, 29 Mar 2023 08:45:15 +0000</pubDate>
      <link>https://forem.com/gundogduyakici/send-background-props-to-other-component-468d</link>
      <guid>https://forem.com/gundogduyakici/send-background-props-to-other-component-468d</guid>
      <description>&lt;p&gt;Hello,&lt;br&gt;
I am switching from one component to another with , but I want to send a data to the other component in the background. For example; google maps place id. When I do as below, the placeId query appears in the URL section. I just want it to show a url in the form of direct /map but I want to send the placeId to the other component in the background. Can this be done?&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;Link href={{{pathname: '/map', query: { placeId: 'test' }}}&amp;gt;&lt;br&gt;
  Map&lt;br&gt;
&amp;lt;/Link&amp;gt;&lt;/code&gt;&lt;/p&gt;

</description>
      <category>nextjs</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Multiple title tags in source code</title>
      <dc:creator>Gündoğdu Yakıcı</dc:creator>
      <pubDate>Sat, 25 Mar 2023 14:21:46 +0000</pubDate>
      <link>https://forem.com/gundogduyakici/multiple-title-tags-in-source-code-oe2</link>
      <guid>https://forem.com/gundogduyakici/multiple-title-tags-in-source-code-oe2</guid>
      <description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I am using Next.js version 13.2.3.&lt;br&gt;
I use the metadata for server side pages as follows, there is no problem.&lt;br&gt;
(&lt;a href="https://beta.nextjs.org/docs/api-reference/metadata#generatemetadata"&gt;https://beta.nextjs.org/docs/api-reference/metadata#generatemetadata&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;&lt;code&gt;export const metadata = {&lt;br&gt;
    title: 'About'&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;I use it like this in Layout.jsx;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;export const metadata = {&lt;br&gt;
  title: {&lt;br&gt;
    default: 'Home Page',&lt;br&gt;
    template: '%s | App Name',&lt;br&gt;
  }&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Everything works fine so far, but sometimes I have to use "use client"; on some pages and when I do that, the use of &lt;code&gt;const metadata&lt;/code&gt; doesn't work. As a solution, I create head.jsx in that page folder and it works. Example;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;export default async function Head({ params }) {&lt;br&gt;
    return (&lt;br&gt;
        &amp;lt;&amp;gt;&lt;br&gt;
            &amp;lt;title&amp;gt;Test | App Name&amp;lt;/title&amp;gt;&lt;br&gt;
            &amp;lt;meta name="description" content="description is here"&amp;gt;&amp;lt;/meta&amp;gt;&lt;br&gt;
        &amp;lt;/&amp;gt;&lt;br&gt;
    );&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;


&lt;p&gt;But the problem here is that there are two &lt;/p&gt; tags in the source code. The first tag is "Home Page" and the other tag is the title I added in head.jsx. Has anyone encountered this problem before? What kind of solution should I follow? I hope I was able to explain.

</description>
      <category>javascript</category>
      <category>nextjs</category>
      <category>react</category>
      <category>webdev</category>
    </item>
    <item>
      <title>How to use metadata client-side? v13.2</title>
      <dc:creator>Gündoğdu Yakıcı</dc:creator>
      <pubDate>Mon, 20 Mar 2023 08:36:03 +0000</pubDate>
      <link>https://forem.com/gundogduyakici/how-to-use-metadata-client-side-v132-19m9</link>
      <guid>https://forem.com/gundogduyakici/how-to-use-metadata-client-side-v132-19m9</guid>
      <description>&lt;p&gt;Hello,&lt;br&gt;
I have reviewed the documentation and the metadata works successfully. But on some pages I have to use "use client" and this method doesn't work. What can I do for this?&lt;/p&gt;

&lt;p&gt;&lt;code&gt;export const metadata = {&lt;br&gt;
    title: 'Login'&lt;br&gt;
};&lt;/code&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>react</category>
      <category>nextjs</category>
    </item>
    <item>
      <title>What's the matcher?</title>
      <dc:creator>Gündoğdu Yakıcı</dc:creator>
      <pubDate>Sun, 12 Mar 2023 13:39:40 +0000</pubDate>
      <link>https://forem.com/gundogduyakici/whats-the-matcher-4b9m</link>
      <guid>https://forem.com/gundogduyakici/whats-the-matcher-4b9m</guid>
      <description>&lt;p&gt;Hi there,&lt;/p&gt;

&lt;p&gt;I'm new in Next.js 13. I have a question for you. I will make a multi language web site and for this I use middleware.js.&lt;br&gt;
My folder structure; app/[lang]/file-name.jsx etc.&lt;/p&gt;

&lt;p&gt;But I don't understand what's meaning the matcher feature. What does it do? What happens if I don't use it?&lt;/p&gt;

&lt;p&gt;&lt;code&gt;export const config = {&lt;br&gt;
    matcher: ["/((?!_next).*)", "/:lang*"],&lt;br&gt;
};&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;I already have access to the incoming parameter because of the [lang] structure. Why do we use it for matcher. What is the logic to use here? Can you explain with an example?&lt;/p&gt;

</description>
      <category>nextjs</category>
      <category>javascript</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Mobile menu logic</title>
      <dc:creator>Gündoğdu Yakıcı</dc:creator>
      <pubDate>Thu, 23 Feb 2023 20:33:43 +0000</pubDate>
      <link>https://forem.com/gundogduyakici/mobile-menu-logic-4co3</link>
      <guid>https://forem.com/gundogduyakici/mobile-menu-logic-4co3</guid>
      <description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I'm using Next.js 13, so I'm new to react.  I designed a simple header with Tailwind.  When I log in from mobile, I hide the menu and show a hamburger.&lt;/p&gt;

&lt;p&gt;When I clicked on this, I prepared a component called MyModal to use it in different operations in many places (for login, register, search, etc.) Because it will be a 90% mobile-based website.&lt;/p&gt;

&lt;p&gt;When I use MyModal in the header component and click on the hambuger, I write a mobile-friendly ul menu in it.&lt;/p&gt;

&lt;p&gt;Is this kind of approach bad or used for mobile menu?  What is your opinion?&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>react</category>
      <category>webdev</category>
      <category>design</category>
    </item>
    <item>
      <title>How to add css from React folder?</title>
      <dc:creator>Gündoğdu Yakıcı</dc:creator>
      <pubDate>Tue, 17 Sep 2019 13:01:05 +0000</pubDate>
      <link>https://forem.com/gundogduyakici/how-to-add-css-from-react-folder-275h</link>
      <guid>https://forem.com/gundogduyakici/how-to-add-css-from-react-folder-275h</guid>
      <description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I'm working on next JS project. I want to add my own css file but I get error not found file in console. Can you help me ?&lt;/p&gt;

&lt;p&gt;&lt;em&gt;code&lt;/em&gt;&lt;br&gt;
&amp;lt; link href="../assets/css/style.css" type="text/css" rel="stylesheet" /&amp;gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;File Path&lt;/em&gt;&lt;br&gt;
assets&lt;br&gt;
~ css&lt;br&gt;
  ~ style.css&lt;br&gt;
components&lt;br&gt;
~ Layout.js&lt;br&gt;
node_modules&lt;br&gt;
pages&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>react</category>
      <category>nextjs</category>
    </item>
    <item>
      <title>About React code structure</title>
      <dc:creator>Gündoğdu Yakıcı</dc:creator>
      <pubDate>Tue, 17 Sep 2019 07:43:24 +0000</pubDate>
      <link>https://forem.com/gundogduyakici/about-react-code-structure-146k</link>
      <guid>https://forem.com/gundogduyakici/about-react-code-structure-146k</guid>
      <description>&lt;p&gt;Hello,&lt;br&gt;
I started learn Next JS. But there's one thing I don't understand.&lt;br&gt;
There are many types of writing in React. I don't know which one is better to use.&lt;/p&gt;

&lt;p&gt;For example;&lt;/p&gt;




&lt;p&gt;function Test() { return &lt;/p&gt;test }



&lt;p&gt;export default () =&amp;gt; &lt;/p&gt;test



&lt;p&gt;class Prices extends React.Component { &lt;br&gt;
 // some code&lt;br&gt;
} &lt;/p&gt;

&lt;p&gt;export default Prices;&lt;/p&gt;




</description>
      <category>javascript</category>
      <category>react</category>
      <category>nextjs</category>
    </item>
  </channel>
</rss>
