<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Fabian Lee on Medium]]></title>
        <description><![CDATA[Stories by Fabian Lee on Medium]]></description>
        <link>https://medium.com/@fabianlee?source=rss-64214f6016f9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*9wjDVlmsm3W5OiTB6MTF3g.png</url>
            <title>Stories by Fabian Lee on Medium</title>
            <link>https://medium.com/@fabianlee?source=rss-64214f6016f9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 12:51:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@fabianlee/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[A Lesser-Known Trick with React Hook Dependencies]]></title>
            <link>https://javascript.plainenglish.io/a-less-known-trick-with-react-hook-dependencies-8dafaca7a150?source=rss-64214f6016f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/8dafaca7a150</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Fabian Lee]]></dc:creator>
            <pubDate>Mon, 08 Aug 2022 04:17:17 GMT</pubDate>
            <atom:updated>2022-08-08T13:53:37.384Z</atom:updated>
            <content:encoded><![CDATA[<h4>An unorthodox React Hook trick for declaring your dependency array.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BfwlKcEuT8BRDLcU" /><figcaption>Photo by <a href="https://unsplash.com/@henmankk?utm_source=medium&amp;utm_medium=referral">Keagan Henman</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>React is designed for developers to come up with their own ways of writing. There’s one React Hook trick that is unorthodox that I felt wrong using but technically it does get the job done. The purpose is to introduce it to all of you rather than convincing everyone to use it.</p><h3><strong>Background</strong></h3><p>As React developers, we were taught to ensure the <strong>referential equality</strong> of non-primitive data types like objects and arrays when we are using them in any hooks with a dependency array as an argument. Any reference change to these data types will trigger a re-computation since React only does shallow comparison.</p><p>A common practice is to memoize these data types. Another way is forcing deep comparison checks with the combination of ref , memoization and a deep equal function like what <a href="https://github.com/kentcdodds/use-deep-compare-effect">use-deep-compare-effect</a> does.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gcw7gi_3_ecwlEUYobnl7A.png" /><figcaption>Snippet of useDeepCompareEffect</figcaption></figure><p>The idea is to memoize the dependency array along with its values. The entire array is saved in a ref and will only be updated when the incoming array does not deeply equate to the previous one. signalRef is used to notify useMemo that the value has changed and return us the new one.</p><h3>The Trick</h3><p>Do you know that stringifying objects and arrays can also achieve an almost identical result? It’s also brought up by none other than the face of React — Dan Abramov himself.</p><h3>дэн on Twitter: &quot;Deep equality checks are generally a bad idea. If the inputs are shallow enough that you think deep equality would still be fast, consider just using [JSON.stringify(obj)] instead. Note it won&#39;t compare functions. / Twitter&quot;</h3><p>Deep equality checks are generally a bad idea. If the inputs are shallow enough that you think deep equality would still be fast, consider just using [JSON.stringify(obj)] instead. Note it won&#39;t compare functions.</p><p>Stringifying values turns non-primitive data types into primitives which we can safely allow React to compare.</p><h4><strong>Pros:</strong></h4><ul><li><strong>Cheaper<br></strong>A JSON.stringify is all it takes with less overhead.</li></ul><pre>const obj = { name: &quot;Fabian&quot;, age: 99 }</pre><pre>useDeepCompareEffect(() =&gt; doSomething(obj), [obj])<br>// is the same as<br>useEffect(() =&gt; doSomething(obj), [JSON.stringify(obj)])</pre><ul><li><strong>Works with nested objects or derived values<br></strong>These are mere conceptual examples.</li></ul><pre>// Nested fields<br>const obj = { address: { street: &quot;&quot;, building: &quot;&quot; } }</pre><pre>useEffect(() =&gt; doSomething(obj.address), [JSON.stringify(obj.address)])</pre><pre>// Derived values<br>useEffect(() =&gt; doSomething(orders),<br>[JSON.stringify(orders.map(o =&gt; o.id))])</pre><h4>Cons:</h4><ul><li><strong>Constrained by the capabilities of JSON.stringify</strong><br>We have to understand <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#description">what JSON.stringify does to different data types</a>. Like functions cannot be stringified to check their equality.</li><li><strong>Requires object fields and array values to be in the same order<br></strong>We are only checking if 2 strings are identical. objA and objB can have the same properties. But if a property is listed as the first one in objA and the last in objB, once stringified they are considered different.</li><li><strong>Complain of complex expression</strong><br>This trick goes against the react-hooks/exhaustive-deps ESLint rule. It can be ignored or you can satisfy it by declaring a variable.</li><li><strong>Promotes ambiguity in dependencies</strong><br>We need to process the expression closely to understand what exactly we are depending on and why. It takes more mental resources especially when derived values are involved.</li><li><strong>Only suitable for shallow objects and arrays</strong><br>Any complex data structure like large nested objects or multi-dimensional arrays is relatively slow for JSON.stringify to process.</li></ul><h3>Final Words</h3><p>We should be clear about what we are trying to achieve. The common reason why we would want to get the dependencies right is to make sure side effects are rerun when needed and optimize performance.</p><p>As Kent C. Dodds put it in his <a href="https://kentcdodds.com/blog/usememo-and-usecallback">article</a>:</p><p><em>Performance optimizations are not free. They ALWAYS come with a cost but do NOT always come with a benefit to offset that cost.</em></p><p>Extra reruns that don’t break the logic don’t necessarily hurt. Optimizations that don’t bring significant value can be skipped. We should use these techniques sparingly to avoid creating more overheads than the problem we’re solving.</p><p><a href="https://medium.com/@fabianlee/membership">Join Medium with my referral link - Fabian Lee</a></p><p><em>More content at </em><a href="https://plainenglish.io/"><strong><em>PlainEnglish.io</em></strong></a><em>. Sign up for our </em><a href="http://newsletter.plainenglish.io/"><strong><em>free weekly newsletter</em></strong></a><em>. Follow us on </em><a href="https://twitter.com/inPlainEngHQ"><strong><em>Twitter</em></strong></a>, <a href="https://www.linkedin.com/company/inplainenglish/"><strong><em>LinkedIn</em></strong></a>,<strong><em> </em></strong><em>and </em><a href="https://discord.gg/GtDtUAvyhW"><strong><em>Discord</em></strong></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8dafaca7a150" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/a-less-known-trick-with-react-hook-dependencies-8dafaca7a150">A Lesser-Known Trick with React Hook Dependencies</a> was originally published in <a href="https://javascript.plainenglish.io/">JavaScript in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[4 More React Native Libraries You Might Have Missed]]></title>
            <link>https://javascript.plainenglish.io/4-more-react-native-libraries-you-might-have-missed-41abe79b27ec?source=rss-64214f6016f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/41abe79b27ec</guid>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <dc:creator><![CDATA[Fabian Lee]]></dc:creator>
            <pubDate>Wed, 02 Feb 2022 05:18:08 GMT</pubDate>
            <atom:updated>2022-02-02T05:18:08.775Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8RPong8t6h3RQU1k" /><figcaption>Photo by <a href="https://unsplash.com/@syinq?utm_source=medium&amp;utm_medium=referral">Susan Q Yin</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>A year ago, I shared 5 React Native libraries that I personally find them useful. It was also well-received by a lot of readers. You can check it out <a href="https://javascript.plainenglish.io/5-react-native-libraries-you-might-have-missed-16fb45d64614">here</a> if you have not read it before. Today, I’m glad to share 4 more of them!</p><p>As always, a big shout out to all the individual contributors out there for creating all these amazing libraries. As fellow React Native developers, let’s show our love by starring, sharing, and most importantly adopting them in your project.</p><h3>1. Moti</h3><p>Moti is essentially the React Native version of <a href="https://www.framer.com/motion/">Framer Motion</a>. It’s created under the motto of <strong>“Write once, animate anywhere”</strong>. This means you can share your native app animations on the web, for example, if you’re using <a href="https://github.com/necolas/react-native-web">React Native Web</a>.</p><p>Moti has incredible performance since it’s using <a href="https://docs.swmansion.com/react-native-reanimated/">Reanimated 2</a> under the hood. The APIs should be familiar for those who have used Framer Motion before. Even for newcomers, the declarative nature of Moti should be intuitive.</p><p>Sometimes I find Reanimated or the traditional Animated API daunting to write. With Moti, it’s much easier to build performant animations fast.</p><p><a href="https://moti.fyi/">Welcome to Moti | Moti</a></p><h3>2. React Native MMKV</h3><p>This is essentially a high performance replacement of Async Storage. It’s written in C++ and utilizes JSI instead of the old bridge.</p><p>You can customize the storage location and encrypt your data as well. But this would require diving into the native iOS or Android library code.</p><p><a href="https://github.com/mrousavy/react-native-mmkv">GitHub - mrousavy/react-native-mmkv: ⚡️ The fastest key/value storage for React Native. ~30x faster than AsyncStorage!</a></p><h3>3. React Native BlurHash</h3><p>This library provides blurred placeholder when for loading images. It gives a slightly more colourful loading experience than using grayscale skeletons.</p><p>It’s a trend in the web industry. We can see frameworks like Next and Gatsby, and image management platforms like Cloudinary provide blurred placeholder option. It would be delightful to see more adoption in mobile apps.</p><p><a href="https://github.com/mrousavy/react-native-blurhash">GitHub - mrousavy/react-native-blurhash: 🖼️ A library to show colorful blurry placeholders while your content loads.</a></p><h3>4. React Native VisionCamera</h3><p>This is possibly the best camera library out there. From camera types to capture formats, you have all the controls you need to build a camera-based app essentially.</p><p>The most fascinating feature is the <strong>Frame Processor</strong>. It’s a function that processes what the camera is capturing. It allows us to create advance features like AI facial and object recognition, barcode scanner, Instagram-like filters, etc. They come in the form of plugins which are written in native code.</p><p><a href="https://mrousavy.com/react-native-vision-camera/">Hello from VisionCamera | VisionCamera</a></p><h3>Thoughts</h3><p>I realized 2 things after I finished my writing:</p><ol><li><a href="https://github.com/mrousavy">Marc Rousavy</a> is a beast who created 3 of the libraries 🙌</li><li>All these libraries are making use of JSI</li></ol><p>React Native has always been criticized for its performance. It’s exciting to see the paradigm shift towards JSI which would jolt the overall performance of React Native apps.</p><p><a href="https://medium.com/@fabianlee/membership">Join Medium with my referral link - Fabian Lee</a></p><p><em>More content at </em><a href="http://plainenglish.io/"><strong><em>plainenglish.io</em></strong></a><em>. Sign up for our </em><a href="http://newsletter.plainenglish.io/"><strong><em>free weekly newsletter</em></strong></a><em>. Get exclusive access to writing opportunities and advice in our </em><a href="https://discord.gg/GtDtUAvyhW"><strong><em>community Discord</em></strong></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41abe79b27ec" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/4-more-react-native-libraries-you-might-have-missed-41abe79b27ec">4 More React Native Libraries You Might Have Missed</a> was originally published in <a href="https://javascript.plainenglish.io/">JavaScript in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5 React Native Libraries You Might Have Missed]]></title>
            <link>https://javascript.plainenglish.io/5-react-native-libraries-you-might-have-missed-16fb45d64614?source=rss-64214f6016f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/16fb45d64614</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Fabian Lee]]></dc:creator>
            <pubDate>Tue, 02 Feb 2021 06:27:58 GMT</pubDate>
            <atom:updated>2021-02-02T06:27:58.588Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*N4CCjCJLnKSRb8By" /><figcaption>Photo by <a href="https://unsplash.com/@chuttersnap?utm_source=medium&amp;utm_medium=referral">CHUTTERSNAP</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>As React Native developers, I think we are all familiar with those essential libraries from react-native-community, as well as other ground-breaking ones like React Navigation and Reanimated.</p><p>In fact, there are also smaller contributors out there and their work are worth mentioning. I would like share 5 remarkable libraries that I’ve found and hopefully they would be useful in your project.</p><h3>1. gorhom/bottom-sheet</h3><p>This is by far the best bottom sheet library I’ve ever tried. It combined the seamless animation and gestures from <a href="https://github.com/osdnk/react-native-reanimated-bottom-sheet">reanimated-bottom-sheet</a> and the scrollable feature from <a href="https://github.com/rgommezz/react-native-scroll-bottom-sheet">react-native-scroll-bottom-sheet</a>, into one native-like performance library.</p><p>Bottom sheets are mounted through a portal which references the common practice in creating overlay content in web development. The concept is similar to React Portals.</p><p>It can also integrate with React Navigation which mimics the iOS native modal stack behavior. The setup is simply wrapping a stack navigator with a bottom sheet. No custom navigator is required. This opens up more creative freedom when implementing a modal stack.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eJbrGNqGYBayk583ALaLYQ.gif" /><figcaption>Demo video from the documentation</figcaption></figure><p>The downside would be the annoying keyboard avoiding view issue. There are imperfect hacks around it and the owner is looking to resolve it in v3 which requires Reanimated v2. It would be a walk in the park if you don’t plan to have any input fields inside your bottom sheets.</p><p><a href="https://github.com/gorhom/react-native-bottom-sheet">GitHub - gorhom/react-native-bottom-sheet: A performant interactive bottom sheet with fully configurable options 🚀</a></p><h3>2. react-native-notifier</h3><p>This library reminds me of the in-app notifications of Instagram. I like neat design, not to mention the integration with gesture handler. And it’s also fully customizable.</p><p>There’s also a queue mode where you can line up multiple notifications and transition through them.</p><p>You can essentially mimic native push notifications. Everyone should find the user experience familiar and intuitive.</p><p><a href="https://github.com/seniv/react-native-notifier">seniv/react-native-notifier</a></p><h3>3. react-native-render-html</h3><p>This library reminds me of Ionic. The basic idea is that you map HTML tags to their corresponding React Native components. You can even have custom tags and add styles with classes.</p><p>The greatest potential I would say it’s to pair it with a back-end service where you can serve HTML templates to your React Native app for rendering. This is particular useful for dynamic content like promotions or disclaimer documents.</p><p><a href="https://github.com/meliorence/react-native-render-html">meliorence/react-native-render-html</a></p><h3>4. react-native-haptic-feedback</h3><p>This library adds a slight touch of user feedback experience. Small interactions like sounds or vibration tends to make us feel “connected” to an app. This idea is profoundly used in the gaming world. It’s not only the sound effects from games but also the vibration on controllers.</p><p>iOS seamlessly implemented haptic features in its Eco-system, for example when you use Apply Pay or confirming an app download. Try adding this feature in one of your user journey and bring your app alive.</p><p><a href="https://github.com/junina-de/react-native-haptic-feedback">junina-de/react-native-haptic-feedback</a></p><h3>5. react-native-parsed-text</h3><p>Creating an inline link to some page, unlike how we can add inline a tags in HTML, requires a great effort in React Native. It was never possible to nest components within text. The problem is even more obvious when your app uses internalization. Sentences could be in different structure depending on the language. You cannot join components and text together in the same way.</p><p>This library would be your savior. You can use RegExp or predefined patterns to select individual text. Then you can add styles and handlers to them. For example, you can select URLs and add a handler to open up the browser.</p><p><a href="https://github.com/taskrabbit/react-native-parsed-text">GitHub - taskrabbit/react-native-parsed-text: Parse text and make them into multiple React Native Text elements</a></p><h3>Conclusion</h3><p>React Native libraries are comparatively mind-boggling to implement since you usually have to deal with JavaScript and Native code from 2 platforms. Really appreciate all the contributors of these libraries. And I wish they would help take your app experience to the next level.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=16fb45d64614" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/5-react-native-libraries-you-might-have-missed-16fb45d64614">5 React Native Libraries You Might Have Missed</a> was originally published in <a href="https://javascript.plainenglish.io/">JavaScript in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create Feature Flags For Your React App with Firebase Remote Config]]></title>
            <link>https://javascript.plainenglish.io/create-feature-flags-for-your-react-app-with-firebase-remote-config-92d17c5e518d?source=rss-64214f6016f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/92d17c5e518d</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Fabian Lee]]></dc:creator>
            <pubDate>Sat, 03 Oct 2020 09:00:20 GMT</pubDate>
            <atom:updated>2020-10-20T15:09:53.047Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S_wW6Nk1v_yStVq34szAXQ.png" /></figure><p><strong>Feature flags</strong> (toggles / switches), as the name suggested, are for switching on and off certain features in your application. You can add feature flags to perform A/B testing by switching on beta features for some users. You can use them as a fail-safe switch in case something goes wrong in production. Or you can use them to hide your work-in-progress features.</p><p>Here I’m going to show you how to implement features flags with Firebase Remote Config with React.</p><h3>1. Initialize Firebase 🔥</h3><p>We need to install 2 packages for this demo. If you have already setup Firebase in your project, just install semver and I’ll explain what’s it for later.</p><pre>yarn add firebase semver</pre><p>Then, create a file firebase.js to initialize the Firebase instance along with other Firebase services you need, which would be remote-config in our case.</p><pre>// firebase.js<br>import Firebase from &#39;firebase/app&#39;;<br>import &#39;firebase/remote-config&#39;;</pre><pre>const firebaseConfig = {};</pre><pre>export const firebase = Firebase.initializeApp(firebaseConfig);</pre><p>Head over to your <a href="https://console.firebase.google.com/">Firebase Console</a> and create a new project if you don’t have one. Then go to the Project Settings page to get your Firebase SDK configs and paste it into firebase.js .</p><pre>// Example<br>const firebaseConfig = {<br>  apiKey: &quot;Your Api Key&quot;,<br>  authDomain: &quot;yourapp.firebaseapp.com&quot;,<br>  databaseURL: &quot;https://yourapp.firebaseio.com&quot;,<br>  projectId: &quot;yourapp&quot;,<br>  storageBucket: &quot;yourapp.appspot.com&quot;,<br>  messagingSenderId: &quot;Some ID&quot;,<br>  appId: &quot;Some ID&quot;,<br>  measurementId: &quot;Some ID&quot;<br>};</pre><p>With the firebase instance initialized, we can pass it around and invoke all the available services.</p><h3>2. Create Remote Flags in Firebase 🚩</h3><p>In your Firebase Console, head to the Remote Config section. You can find it under the Grow section on the left side menu.</p><p>You should see the following if it’s your first setup. Enter a parameter key which will be our feature flag name and its default value which will be a semantic versioning string ^1.0.0. The string will be related to the semver package that we installed at the beginning. I’ll explain it in the next section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dkBcKY54HMWm86jLdw7wIQ.png" /></figure><p>Click <strong>Add parameter </strong>and you should reach this page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vOzMvtc4abFyvnJN5doJSQ.png" /></figure><p>Click <strong>Publish changes</strong> and you’ll have your first feature flag ready to use!</p><h3>3. Create FlagsProvider Component</h3><p>In order to share your feature flags across your app, we need to create a FlagsProvider which fetches all the remote flags we created above and share them through the Context API.</p><p>First, create a FlagsContext and get the remoteConfig instance. Since all the fetched remote configs will be cached in your browser’s IndexDB, we can adjust the maximum age of the cache in development, i.e. minimumFetchIntervalMillis . Obviously, you can also manually delete the cache yourself.</p><p>Our provider component should take in a defaults prop for setting the default values of your feature flags. We’ll save them in a flags state and pass it to our Provider below, so we can trigger a re-render when we set new flags.</p><pre>// FlagsProvider.js<br>import React from &#39;react&#39;;<br>import { firebase } from &#39;./firebase&#39;;</pre><pre>const FlagsContext = React.createContext({});<br>const remoteConfig = firebase.remoteConfig();</pre><pre>// Only for development<br>remoteConfig.settings = {<br>  minimumFetchIntervalMillis: 3600000,<br>};</pre><pre>const FlagsProvider = ({ defaults, children }) =&gt; {<br>  const [flags, setFlags] = React.useState(defaults);</pre><pre>  // Next part...</pre><pre>  return (<br>    &lt;FlagsContext.Provider value={flags}&gt;<br>      {children}<br>    &lt;/FlagsContext.Provider&gt;<br>  );<br>};</pre><p>Next, we’ll add an useEffect hook. We need to assign our defaults prop as the default config. Then we fetch and activate all the remote flags. We would then loop through the remote flags and set our flags state.</p><pre>const FlagsProvider = ({ defaults, children }) =&gt; {<br>  ...</pre><pre>  React.useEffect(() =&gt; {<br>    remoteConfig.defaultConfig = defaults;</pre><pre>    remoteConfig<br>     .fetchAndActivate()<br>     .then(activated =&gt; {<br>        if (!activated) console.log(&#39;not activated&#39;);<br>        return remoteConfig.getAll();<br>     })<br>     .then(remoteFlags =&gt; {<br>       const newFlags = {<br>         ...flags,<br>       };</pre><pre>       for (const [key, config] of Object.entries(remoteFlags)) {<br>         const appVer = process.env.REACT_APP_VERSION;<br>         newFlags[key] = <br>            semverSatisfies(appVer, config.asString());<br>       }</pre><pre>       setFlags(newFlags);<br>    })<br>    .catch(error =&gt; console.error(error));<br>  }, []);</pre><pre>  ...<br>};</pre><p>Here’s where semver helps us determine the boolean state of a flag. The semverSatisfies function checks if a given version number satisfies a versioning range.</p><p><strong>To illustrate how it works,</strong></p><ul><li>We retrieve our app version from our environment variables.</li></ul><p><em>Add </em><em>REACT_APP_VERSION=$npm_package_version to your </em><em>.env file in this example which would retrieve the version number from your </em><em>package.json.</em></p><ul><li>We have 1 remote flag which is [&#39;someAwesomeFeatureEnabled&#39;, &#39;^1.0.0&#39;] .</li><li>Assuming our app version is 1.0.1 , semverSatisfies(&#39;1.0.1&#39;, &#39;^1.0.0&#39;) would return true.</li><li>And finally we call setFlags({ someAwesomeFeatureEnabled: true }).</li></ul><p>The final version should be like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f9c5538a01ea5fec184ee9d304fddc0f/href">https://medium.com/media/f9c5538a01ea5fec184ee9d304fddc0f/href</a></iframe><h3>4. Wrap your App with FlagsProvider</h3><p>Finally, wrap the FlagsProvider to your root App and specify the defaults prop. The flag names <strong>MUST</strong> match the ones you set in your Firebase Console. Or else it won’t be able to fetch the corresponding flags.</p><pre>import React from &#39;react&#39;;<br>import FlagsProvider from &#39;...&#39;;</pre><pre>const App = () =&gt; {<br>  return (<br>    &lt;FlagsProvider<br>      defaults={{<br>        someAwesomeFeatureEnabled: false,<br>      }}<br>    &gt;<br>      &lt;YourApp /&gt;<br>    &lt;/FlagsProvider&gt;<br>  )<br>}</pre><h3>How to Access your Flags</h3><p>To make your life easier, you can create a custom hook for retrieving your flags from your FlagsContext .</p><pre>export const useFlags = () =&gt; {<br>  const context = React.useContext(FlagsContext);<br>  return context;<br>}</pre><p>You can now toggle your awesome feature like this 👏,</p><pre>const Component = () =&gt; {<br>  const { someAwesomeFeatureEnabled } = useFlags();  <br>  return (<br>    &lt;div&gt;<br>     {someAwesomeFeatureEnabled &amp;&amp; &lt;SomeAwesomeFeature /&gt;}<br>    &lt;/div&gt;<br>  )<br>}</pre><h3>All Done! 🎊</h3><p>It’s such a development changing experience for me. I can keep working on new features and once they’re ready, I can simply switch on the flag instead of redeploying the app.</p><p>If you want to add more flags, simply add them to Firebase and the defaults prop. And remember to update your app version every time you’re deploying a new version!</p><p>Remote Config can also be done in React Native as well. The APIs will be slightly different but the concept is the same.</p><p><a href="https://rnfirebase.io/">React Native Firebase | React Native Firebase</a></p><p>Also, you have a lot of flexibility in specifying the versioning range, check out the docs below.</p><p><a href="https://github.com/npm/node-semver#ranges">npm/node-semver</a></p><p>Until next time, hope you’ll find this demo useful. 😄</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=92d17c5e518d" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/create-feature-flags-for-your-react-app-with-firebase-remote-config-92d17c5e518d">Create Feature Flags For Your React App with Firebase Remote Config</a> was originally published in <a href="https://javascript.plainenglish.io/">JavaScript in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[6 Tips for Building your GatsbyJS Website]]></title>
            <link>https://javascript.plainenglish.io/6-tips-on-building-your-gatsbyjs-website-64203212aa4?source=rss-64214f6016f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/64203212aa4</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[gatsbyjs]]></category>
            <category><![CDATA[tips]]></category>
            <dc:creator><![CDATA[Fabian Lee]]></dc:creator>
            <pubDate>Sun, 20 Sep 2020 13:06:12 GMT</pubDate>
            <atom:updated>2020-09-21T09:44:01.461Z</atom:updated>
            <content:encoded><![CDATA[<h3>6 Tips for Building your Gatsby Website</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SQdK1oLDvGecynYvKDKzzQ.png" /></figure><p>I’ve built 2 personal websites up to this date. The first one was how I taught myself the basics of web development 4 years ago. It was a simple <a href="https://getbootstrap.com/">Bootstrap</a> website and far from being presentable. I had a separated <a href="https://ghost.org/">Ghost</a> blog website as well but it was a mess when I tried to customize it. After years of solidifying my skills, I went to search for a better alternative which is fast, customizable and easy to maintain. Thereon, I found <a href="https://www.gatsbyjs.com/">Gatsby</a> and built my second <a href="https://sugarfabby.com/">personal website</a>. The entire experience is truly remarkable.</p><p>In the process of learning how to use Gatsby, I took reference from <a href="https://wesbos.com/">Wes Bos</a> and <a href="https://kentcdodds.com/">Kent C. Dodds’</a> Gatsby sites. It’s amazing to see how they utilize Gatsby to its core.</p><p>Here are some of the tips that I’ve find useful if you wish to start or improve your Gatsby project.</p><h3>1. SEO with React Helmet</h3><p>You can build a reusable SEO component and override the default metadata with props in different pages. I have a default SEO component which has the basic HTML header, Facebook OpenGraph and Twitter metadata that represent the general pages. I would then override them with Markdown frontmatter data in my blog post pages so that they can be indexed and shared individually.</p><h3>2. Wrap your Layout in gatsby-browser and gatsby-ssr</h3><p>If you have a general page design that you wish to apply to all of your pages, you can create a Layout component and add it to gatsby-browser and gatsby-ssr files like this:</p><pre>exports.wrapPageElement = ({ element, props }) =&gt; (<br>   &lt;Layout {...props}&gt;{element}&lt;/Layout&gt;<br>);</pre><p>Using the wrapPageElement API, Gatsby would automatically apply the Layout when it’s building your pages. It’s also worth mentioning that Layout will stay mounted. I had ran into issues with unmounting states when I was playing with animations and this can be solved by using this method. It’s still completely fine to apply Layout to each page yourself if your content are static.</p><h3>3. Tap into the superpowers of Gatsby APIs</h3><p>It took me quite some time to understand the power of Gatsby APIs. The most common use cases would be for automating some building process. For example, I can query all the markdown files in createPages API and call the createPage action to build the pages with the path, template and add any context data that I want. This is how I generated all my blog posts. Essentially, you can have different page templates to build your Podcasts, Workshops, Book Reviews or whatever pages you want.</p><p>onCreateNode is also another helpful API that adds extra GraphQL node fields. For example, I’ve added a editLink field which is the post edit link in GitHub and I can query it inside my blog post template page.</p><p>You can explore all the APIs <a href="https://www.gatsbyjs.com/docs/api-reference/">here</a> and find a use case for yourself.</p><h3>4. Use Gatsby Image plugin</h3><p>At the very beginning, I was simply using img tags to for all my images. It’s not a good solution in terms of responsiveness. It would also be time-consuming for me to create images with different sizes and use them with picture tags.</p><p>This is where gatsby-image comes in place. It does all of the aforementioned process and even provides lazy loading. You can also choose between blurring and SVG tracing effect to add a touch of progressive loading user experience. It works with different CMS plugins that provides images as well.</p><h3>5. You might not need to integrate a CMS</h3><p>This depends on the nature of your website obviously. If someone else is managing the content, integrating with a CMS like Contentful, Wordpress or Drupal would be the best.</p><p>If you are simply building and managing your own website, you don’t necessary need a CMS. Sourcing from your local files is simpler than you think with community plugins like gatsby-source-filesystem. For example, I’m writing my blog posts in MDX locally. Publishing and editing are all done by pushing commits to my repository. This way you’ll have full control without relying on other services to serve the content.</p><h3>6. Activate incremental build if you’re hosting on Netlify</h3><p>Deploying a Gatsby website to Netlify could take up a lot of time since it needs to generate all of pages one by one. The build time goes even higher if you have a lot of images.</p><p>I recommend following this <a href="https://www.netlify.com/blog/2020/04/23/enable-gatsby-incremental-builds-on-netlify/">guide</a> to setup incremental build in Netlify. It uses the Gatsby cache plugin to help persist cache between builds and only rebuild files that have been changed. This significantly improves the build time of your website.</p><p><strong>Thanks for reading!</strong></p><p>Feel free to checkout my website’s repo to see these tips in action and hopefully you’ll find them useful. I’ll happy to help if you have any questions.</p><p><a href="https://github.com/fabianlee1211/sugarfabby.com">fabianlee1211/sugarfabby.com</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64203212aa4" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/6-tips-on-building-your-gatsbyjs-website-64203212aa4">6 Tips for Building your GatsbyJS Website</a> was originally published in <a href="https://javascript.plainenglish.io/">JavaScript in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build a Flexible React Icon Component]]></title>
            <link>https://javascript.plainenglish.io/build-a-flexible-react-icon-component-6fb00cdf89b7?source=rss-64214f6016f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/6fb00cdf89b7</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Fabian Lee]]></dc:creator>
            <pubDate>Sun, 16 Aug 2020 13:45:17 GMT</pubDate>
            <atom:updated>2020-08-17T17:19:27.066Z</atom:updated>
            <content:encoded><![CDATA[<p>Icons are essential for every project. And there are multiple ways to import them. For quite some time, we’ve been importing them through CSS using links adding either to the HTML header or CSS import function. In the light of developer experience, we have npm packages that come with tonnes of icons that we can install and use effortlessly.</p><p>Today, I will show you how to build a flexible React icon component make use of these packages along with styled-components.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MGKmySqSfrFv73-m" /><figcaption>Photo by <a href="https://unsplash.com/@balazsketyi?utm_source=medium&amp;utm_medium=referral">Balázs Kétyi</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Let’s Start!</h3><p>In your React project, you can choose to install <a href="https://github.com/react-icons/react-icons">react-icons</a> or <a href="https://github.com/meronex/meronex-icons">meronex-icons</a>. I will be using the latter which is a fork of react-icons that enables tree-shaking. Great thing about these packages is they provide SVG icons.</p><pre>yarn add @meronex/icons</pre><pre>npm install @meronex/icons</pre><p>Create a new Icon component in your project,</p><pre>import React from &#39;react&#39;;</pre><pre>const Icon = () =&gt; {};</pre><pre>export default Icon;</pre><p>The 2 packages would teach you to import icons directly when you need, for example</p><pre>import { FaBeer } from &#39;@meronex/icons/fa&#39;;</pre><pre>const Beer = () =&gt; &lt;h3&gt;&lt;FaBeer /&gt; for life.&lt;/h3&gt;;</pre><p>I don’t find it practical since we usually want to centralize how components behave and display. And while using styled-components, you don’t want to import your theme everywhere when you want to style your icons. Nevertheless having a chunk of import statements.</p><h3>What We Can Do</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*txP620rNdCTLRD8f-ap-RA.png" /></figure><p>There are 2 less common features we used here.</p><h4>1. Factory function in styled-components</h4><p>It allows us to pass in a function that returns a component. It’s usually for altering the props before passing to the component.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/982/1*2X8FpAsCSQUwc_9SftSNrA.png" /></figure><p>And for the record,</p><pre>const StyledCmp = styled((props) =&gt; &lt;Cmp {...props} /&gt;)``</pre><pre>// is the same as</pre><pre>const StyledCmp = styled(Cmp)``</pre><h4>2. React.createElement Method</h4><p>This is particularly useful when we want to dynamically create components.</p><p>The iconFamilies is a mapper object that each key refers to icons of a family. We can choose whatever icons we want by passing props family and name . And React will help us create that icon on the fly.</p><pre>&lt;Icon family=&quot;MaterialDesign&quot; name=&quot;MdAlarm&quot; /&gt;</pre><pre>React.createElement(iconFamilies[&#39;MaterialDesign&#39;][&#39;MdAlarm&#39;])</pre><pre>// is the same as </pre><pre>&lt;MaterialDesignIcons.MdAlarm /&gt;</pre><p>Assuming you have a theme and you want to set the color and size, the final version can be something like this.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0f0b00e95e1563452856201663e53d6b/href">https://medium.com/media/0f0b00e95e1563452856201663e53d6b/href</a></iframe><p>And if you don’t like styled-components, you can simply do this with style object as usual.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/032eb89e820cff9e41c78f2819cda9eb/href">https://medium.com/media/032eb89e820cff9e41c78f2819cda9eb/href</a></iframe><h3>Caveats</h3><p>This solution requires us to import icons all at once. If you really care about the slightly increased bundle size, I would suggest planning out all the icons you will use. Then create a mapper which includes the family as well as the name. This also means you would need to maintain the list of icons.</p><pre>import { MdAlarm, MdDelete, ... } from &#39;@meronex/icons/md&#39;;<br>import React from &#39;react&#39;;</pre><pre>const iconFamilies = {<br>  MaterialDesign: {<br>   MdAlarm,<br>   MdDelete,<br>   ...<br>  }<br>}</pre><pre>const Icon = ({ family, name, ...rest}) =&gt; (<br>  React.createElement(iconFamilies[family][name]), rest)<br>)</pre><pre>export default Icon;</pre><p>Hope you’ll find this useful in your project. Let me know if find anything unusual with this implementation. I would love to learn from you guys as well.</p><p>Cheers!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6fb00cdf89b7" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/build-a-flexible-react-icon-component-6fb00cdf89b7">Build a Flexible React Icon Component</a> was originally published in <a href="https://javascript.plainenglish.io/">JavaScript in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5 Must Ask Questions in your Job Interview]]></title>
            <link>https://medium.com/@fabianlee/5-must-ask-questions-in-your-job-interview-b96312550486?source=rss-64214f6016f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/b96312550486</guid>
            <category><![CDATA[work]]></category>
            <category><![CDATA[jobs]]></category>
            <category><![CDATA[careers]]></category>
            <category><![CDATA[interview]]></category>
            <dc:creator><![CDATA[Fabian Lee]]></dc:creator>
            <pubDate>Thu, 05 Dec 2019 17:58:27 GMT</pubDate>
            <atom:updated>2019-12-08T14:16:33.890Z</atom:updated>
            <content:encoded><![CDATA[<h3>5 Must Ask Questions in Your Job Interview</h3><h4>Consider asking these questions to better judge if the job fits you.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Kj7z6-6RYBcg1JUV" /><figcaption>Photo by <a href="https://unsplash.com/@nikarthur?utm_source=medium&amp;utm_medium=referral">Nik MacMillan</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Before ending your job interview that you’ve probably prepared hard for, you would usually get the chance to ask questions. Every one could excel in their technical / personality / cultural interview because it’s about <strong>YOU</strong>. But what’s the point of getting the job if you don’t know about <strong>THEM</strong>?</p><p>Of course, you could google about the companies you are interested in. But they could be sugar-coated information. It’s always the best to ask someone in-person. This way you can get the most straight-forward, less filtered information from companies.</p><p>Asking questions can be a hidden evaluation of your performance, it could cost you the job that you deeply craved. Good questions can show that you are eager to learn about the company and also help you gather critical information. You can make a better decision on whether to take the job later on.</p><p>Here are 5 questions that I personally would ask every time I have an interview:</p><h3>1. Who are the members that I’ll be working with and what are their experience?</h3><p>Usually if you went through a few rounds of interview, you could have met your possible future teammates already. This is what happened in my last interview. If that’s the case, just focus on the second part of the question.</p><p>If not, the first part can help you see if companies saw potential in you. This is usually a good sign if they have visioned you to be part of the team and where you can shine.</p><p>The second part contains the most crucial information you need. If the interviewer can clearly describe the team, this indicates that they pay close attention to employees. You always want to look for companies that put their employees first. And a team that knows each other well to work seamlessly together.</p><p>Once you learnt about the team’s experience, you can now judge whether they can take you to a higher level of your career. I had an interview for a Web Developer position before. A project manager interviewed me and I asked him this question. But he couldn’t give a thorough overview of his team.</p><blockquote>They all know HTML CSS JavaScript SQL…with a few years of experience.</blockquote><p>This is what all I’ve heard from him. I mean, of course they do but the point is how well and what have they achieved. I was looking for an engineering focused team but unfortunately they aren’t.</p><blockquote>We become like the people that we (choose to) expose ourselves to. It follows that you can accelerate your personal growth in whatever direction you desire by spending time with people who <em>already are</em> who you want to <em>become</em>. — <a href="https://medium.com/@maartenvandoornhttps://medium.com/@maartenvandoorn">Maarten van Doorn</a></blockquote><p>You should know what’s best for you. If you’re like me with a <a href="https://www.brainpickings.org/2014/01/29/carol-dweck-mindset/https://www.brainpickings.org/2014/01/29/carol-dweck-mindset/">growth mindset</a>, find yourself a seasoned team that does what you like to do but way better. This guarantees the best learning environment.</p><h3>2. Why are you hiring?</h3><p>This question can be in variations like:</p><ul><li><strong>Why bring on more [position]?</strong></li><li><strong>What challenges are you facing?</strong></li><li><strong>What happened to the last person of this position?</strong></li></ul><p>Obviously, the answer can be as simple as they are short-handed or they are expanding their business which requires more talent. On one hand, you can understand their current challenges and the expectation of your role. For example, the company is migrating to a new tech stack or building a cloud infrastructure. Which makes sense that these require new expertise.</p><p>Sometimes, there could be more than meets the eyes. The real purpose here is to flush out any hidden “danger” in the company. You could be replacing someone in the company. And people can leave for various reasons. You need to be aware of potential management issues like having a hostile working environment, unfair working policies etc.</p><p>A friend of mine left his job in software agency within a week. It was because he’s the only one in the web development team. By either asking <a href="#96ef">my first question</a> or this one could have help him realize the issue earlier.</p><h3>3. How would you help / mentor newcomers?</h3><p>How companies treat newcomers lays the foundation of trust and empathy at work. You should not feel intimidated, humiliated or isolated as a new member. It’s the company’s responsibility to build a “Circle of Safety”. We should feel safe and trusted with all the resources given to us. It could be providing training programs and feedback sessions. This better equips you and the company to defend yourself from dangers outside and to seize opportunities.</p><blockquote>You can check out <strong>Leaders Eat Last</strong> by Simon Sinek to learn more about “Circle of Safety”.</blockquote><p>In terms of software engineering, I would like to hear that they have well-written documentations, code review or pair-programming sessions, freedom to ask anything etc. I’ve been through NOT having almost all of the above. It was an unpleasant experience. I managed to learn fast, yet, it could have been more efficient.</p><p>Imagine if you are now working in the company, think about what kind of colleagues you want around you. Then assess the possibility from their answer.</p><h3>4. What are the future plans?</h3><p>It’s always good to know if the company’s future outlook is prosperous. Of course, this includes better employee benefits but most importantly the work you would do.</p><p>I hope that you’re like me who don’t like doing boring crap everyday. Try and see if companies would share their upcoming business plan. Make sure it excites you or at least you know there’s something challenging behind the curtains.</p><p>I previously wanted to learn more hands-on skills in full stack development. My current company happened to be in the phase of tech stack and branding transition. A lot of work needed to be done for the new application launch. I immediately knew that this would be a great opportunity to learn tonnes of knowledge. And I can be the dumbest person in the room. This reminds me to keep learning and have a purpose at work.</p><p>Again, this helps flushing out hidden “danger” as well because the company could be going downhill. And you don’t want to be in situations like getting lay-offed, not getting paid or requiring you to work extra and magically bring the company back on its feet again.</p><p>A clear future tends to provide a better career path. We all need goals to assess how far we have progressed and what we have achieved in life. When the company has a goal and you believe in it, you will have the motivation to reach wherever you want. Even someday the company collapsed, you will be surprised how much valuable skills you have learnt. And you can bring your expertise to anywhere else.</p><h3>5. Why do you like working here?</h3><p>Adding a more personal question could be a surprise to the interviewer. You will get the most realistic answer from them. I’m sure that they could have you asked you “Why do you want to work here?”. This time you will be the judge to see if they are being honest. Remember, an interview to not always about YOU and also THEM.</p><p>This question could also give you some insight of how’s the working culture there. You might never know if you don’t ask. Like some companies told me that they would head out for drinks every week, organize sport activities and allow you to work remotely. These are really appealing culture that attracts me. Sometimes it’s not always about work but how people spend time together.</p><p>Think of it like it’s having a casual conversation. You could leave a better impression since I doubt many people would be so upfront. It could be a cultural difference as I’m from Asia. So try to be that special person that the interviewer would remember you.</p><h3>Don’t be Shy! Just Ask!</h3><p>In this digital age, you could always try to contact employees of the company if you are still confused after asking all these questions. Go on LinkedIn and I’m sure you will find the right person.</p><p>This is my first story on Medium. Hopefully my advice can help you make better job decisions and stand out from the others!</p><p><strong>Thanks for reading. Good luck with your interview!</strong></p><h4>Related Stories</h4><p><a href="https://medium.com/the-polymath-project/you-are-the-average-of-the-five-people-you-spend-the-most-time-with-a2ea32d08c72">You Are The Average Of The Five People You Spend The Most Time With</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b96312550486" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>