<?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>DEV Community: Cole Redfearn</title>
    <description>The latest articles on DEV Community by Cole Redfearn (@coleredfearn).</description>
    <link>https://dev.to/coleredfearn</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%2F603538%2F293365f9-ab9d-4c93-a954-da2e701caee1.jpg</url>
      <title>DEV Community: Cole Redfearn</title>
      <link>https://dev.to/coleredfearn</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/coleredfearn"/>
    <language>en</language>
    <item>
      <title>Atomos — A New Recoil Visualization Tool Powered by React Flow</title>
      <dc:creator>Cole Redfearn</dc:creator>
      <pubDate>Thu, 25 Mar 2021 14:53:07 +0000</pubDate>
      <link>https://dev.to/coleredfearn/atomos-a-new-recoil-visualization-tool-powered-by-react-flow-4b6l</link>
      <guid>https://dev.to/coleredfearn/atomos-a-new-recoil-visualization-tool-powered-by-react-flow-4b6l</guid>
      <description>&lt;h2&gt;
  
  
  Motivation
&lt;/h2&gt;

&lt;p&gt;So you’ve heard about Facebook’s exciting new state management library, Recoil, and you want to implement it in your own React applications. Unfortunately, Recoil is so new that there aren’t a wealth of resources available on it, like there are for Redux, MobX, etc. Recoil and its atom-selector system is a fantastic state management solution, but it does present some technical challenges when dealing with complex, production-level React applications. What if there were a Recoil devtool that integrates with React DevTools to analyze a React application and render an intuitive, dynamic component tree complete with all atom-selector relationship data?&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjv4d83g1xf9nhn3jewco.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjv4d83g1xf9nhn3jewco.png"&gt;&lt;/a&gt;&lt;br&gt;Recoil uses atoms to send small bits of state to various components throughout a React application, and uses selectors as pure functions to modify these atoms
  &lt;/p&gt;

&lt;h2&gt;
  
  
  Recoil
&lt;/h2&gt;

&lt;p&gt;Recoil is an experimental, open-source state management library made for React and developed by Facebook. It uses atoms and selectors to pass state throughout an application, while increasing performance by preventing unnecessary re-renders. It is an elegant solution to the state management problem and should become an essential part of every React developer’s toolset in the near future.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6hj0zvh0rr16km2r8k5g.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6hj0zvh0rr16km2r8k5g.jpg"&gt;&lt;/a&gt;&lt;br&gt;Atomos analyzes React applications and renders a clean and intuitive component tree
  &lt;/p&gt;

&lt;h2&gt;
  
  
  Solution
&lt;/h2&gt;

&lt;p&gt;Our team has developed Atomos, a new open-source Chrome developer tool designed specifically for Recoil. Atomos integrates seamlessly with React DevTools to provide real-time visualization and facilitate the planning and debugging of a React/Recoil application’s structure and state. In other words, Atomos analyzes a Recoil application and renders a clean, intuitive component tree generated with React Flow, that selectively highlights components to show how atoms and selectors are passing data through the application. Atomos saves developers time and energy by taking the guesswork out of the state management debugging process.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft8s2q7fzsi8pmans7rc3.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft8s2q7fzsi8pmans7rc3.gif"&gt;&lt;/a&gt;&lt;br&gt;Atomos renders dynamically upon any change to state
  &lt;/p&gt;

&lt;h2&gt;
  
  
  Features
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Clean and easy-to-read UI, developed with React Flow&lt;/li&gt;
&lt;li&gt;Dynamically updates when state changes&lt;/li&gt;
&lt;li&gt;Tracks component creation and deletion&lt;/li&gt;
&lt;li&gt;Displays only the components which are currently being rendered&lt;/li&gt;
&lt;li&gt;Integrates seamlessly with React Devtools — no need to download an npm package&lt;/li&gt;
&lt;li&gt;Drag-and-drop functionality to customize the component tree layout&lt;/li&gt;
&lt;li&gt;Identifies atom and selector relationships&lt;/li&gt;
&lt;li&gt;Dropdown menus display all atoms and selectors in the application&lt;/li&gt;
&lt;li&gt;Tracks atoms and selectors and selectively highlights them throughout the component tree&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyr31ag4v7g7s4hymkqef.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyr31ag4v7g7s4hymkqef.gif"&gt;&lt;/a&gt;&lt;br&gt;Atomos tracks atom and selector relationships throughout an application and displays which components they interact with
  &lt;/p&gt;

&lt;h2&gt;
  
  
  Why it Matters
&lt;/h2&gt;

&lt;p&gt;Atomos helps developers align their mental model of how the application should manage state with what is actually happening in the code. Atomos enables developers to isolate an individual atom or selector and trace its passage of state throughout the component tree. They can then test the application and verify that state is being passed correctly in real time. This will ensure more stable, performant code, less time spent debugging, and faster development cycles.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Future
&lt;/h2&gt;

&lt;p&gt;In the future, we hope to add to the functionality of Atomos and convert it into a comprehensive state management debugging tool. Here are some features we have planned:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Enabling users to build their own planning trees, and then compare the application-visualized tree to their planning tree&lt;/li&gt;
&lt;li&gt;Incorporating other forms of state management, such as props, React Hooks, and Context API&lt;/li&gt;
&lt;li&gt;Allowing users to take snapshots of the component tree, store them in the application, and share them with other users&lt;/li&gt;
&lt;li&gt;Augmenting React Flow nodes to display atom values and function body of selectors&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Thank you for reading, and feel free to try out Atomos by visiting our GitHub repo below!&lt;/p&gt;

&lt;h2&gt;
  
  
  Authors
&lt;/h2&gt;

&lt;p&gt;Sumin Kim — &lt;a href="https://www.linkedin.com/in/ppsm920/" rel="noopener noreferrer"&gt;@LinkedIn&lt;/a&gt; — &lt;a href="https://github.com/ppsm920" rel="noopener noreferrer"&gt;@GitHub&lt;/a&gt;&lt;br&gt;
Vicki Lee — &lt;a href="https://www.linkedin.com/in/vlee022/" rel="noopener noreferrer"&gt;@LinkedIn&lt;/a&gt; — &lt;a href="https://github.com/vlee022" rel="noopener noreferrer"&gt;@GitHub&lt;/a&gt;&lt;br&gt;
Jonathan Mendoza — &lt;a href="https://www.linkedin.com/in/jonathan-mendoza1/" rel="noopener noreferrer"&gt;@LinkedIn&lt;/a&gt; — &lt;a href="https://github.com/mendxza" rel="noopener noreferrer"&gt;@GitHub&lt;/a&gt;&lt;br&gt;
Cole Redfearn — &lt;a href="https://www.linkedin.com/in/coleredfearn/" rel="noopener noreferrer"&gt;@LinkedIn&lt;/a&gt; — &lt;a href="https://github.com/coleredfearn/" rel="noopener noreferrer"&gt;@GitHub&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  GitHub
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/oslabs-beta/atomos" rel="noopener noreferrer"&gt;https://github.com/oslabs-beta/atomos&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Website
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://getatomos.io/" rel="noopener noreferrer"&gt;https://getatomos.io/&lt;/a&gt;&lt;/p&gt;

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