<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Frontend on Yosgi</title><link>https://yosgi.github.io/en/categories/frontend/</link><description>Recent content in Frontend on Yosgi</description><generator>Hugo</generator><language>en</language><lastBuildDate>Mon, 29 Jun 2026 09:20:51 +0000</lastBuildDate><atom:link href="https://yosgi.github.io/en/categories/frontend/index.xml" rel="self" type="application/rss+xml"/><item><title>Understanding React Hooks</title><link>https://yosgi.github.io/en/post/understanding-react-hooks/</link><pubDate>Thu, 25 Feb 2021 00:00:00 +1300</pubDate><guid>https://yosgi.github.io/en/post/understanding-react-hooks/</guid><description>Understanding React Hooks Release Date: February 25, 2021 Understanding React Hooks Those who have used the old version of react should know that react’s class component has state to manage the internal state, as shown in the following example code class Clock extends React.Component { constructor(props) { super(props); this.state = {date: new Date()}; } render() { return ( &lt;div&gt; &lt;h1&gt;Hello, world!&lt;/h1&gt; &lt;h2&gt;It is {this.state.date.toLocaleTimeString()}.&lt;/h2&gt; &lt;/div&gt; ); } }Function components do not have their own state, as shown in the following example code function Clock() { return ( &lt;div&gt; &lt;h1&gt;Hello, world!&lt;/h1&gt; &lt;h2&gt;It is {new Date().toLocaleTimeString()}.&lt;/h2&gt; &lt;/div&gt; ) }If I want to use a function component and want to have manual control over the date, I have to modify the component using props as follows, which transfers control to the parent component:</description></item><item><title>DOM event flow</title><link>https://yosgi.github.io/en/post/dom-event-flow/</link><pubDate>Fri, 29 Jan 2021 17:44:40 +1300</pubDate><guid>https://yosgi.github.io/en/post/dom-event-flow/</guid><description>DOM event flow is easy to confuse</description></item><item><title>CSS pseudo-class selector nth-child</title><link>https://yosgi.github.io/en/post/css-pseudo-class-selector-nth-child/</link><pubDate>Thu, 07 Mar 2019 17:32:19 +1300</pubDate><guid>https://yosgi.github.io/en/post/css-pseudo-class-selector-nth-child/</guid><description>About nth-child and HTML specifications</description></item><item><title>Summary of Vue's easy-to-error and easy-to-confuse knowledge points</title><link>https://yosgi.github.io/en/post/summary-of-vue-s-easy-to-error-and-easy-to-confuse-knowledge-points/</link><pubDate>Mon, 10 Sep 2018 18:30:10 +1200</pubDate><guid>https://yosgi.github.io/en/post/summary-of-vue-s-easy-to-error-and-easy-to-confuse-knowledge-points/</guid><description>Knowledge Points Summary</description></item><item><title>Observer mode and Vue monitoring object changes</title><link>https://yosgi.github.io/en/post/observer-mode-and-vue-monitoring-object-changes/</link><pubDate>Sat, 05 May 2018 22:38:54 +1200</pubDate><guid>https://yosgi.github.io/en/post/observer-mode-and-vue-monitoring-object-changes/</guid><description>Javascript Design Patterns Knowledge Points</description></item></channel></rss>