<?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 JavaScript UI Libraries — DHTMLX on Medium]]></title>
        <description><![CDATA[Stories by JavaScript UI Libraries — DHTMLX on Medium]]></description>
        <link>https://medium.com/@dhtmlx?source=rss-e9c0a531d5e5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*gjV-CnImLGgFu5U47b3Egw.png</url>
            <title>Stories by JavaScript UI Libraries — DHTMLX on Medium</title>
            <link>https://medium.com/@dhtmlx?source=rss-e9c0a531d5e5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 25 Nov 2026 01:10:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dhtmlx/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[More Than Moving Tasks: Exploring Drag-and-Drop in DHTMLX Gantt]]></title>
            <link>https://dhtmlx.medium.com/more-than-moving-tasks-exploring-drag-and-drop-in-dhtmlx-gantt-a270836eac55?source=rss-e9c0a531d5e5------2</link>
            <guid isPermaLink="false">https://medium.com/p/a270836eac55</guid>
            <category><![CDATA[drag-and-drop]]></category>
            <category><![CDATA[project-management]]></category>
            <category><![CDATA[gantt-chart]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[JavaScript UI Libraries — DHTMLX]]></dc:creator>
            <pubDate>Wed, 18 Nov 2026 19:10:51 GMT</pubDate>
            <atom:updated>2026-11-18T19:23:06.352Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ip6njD6jV--MQvGz1XVPWA.png" /></figure><p>In JavaScript Gantt components, drag-and-drop (DnD) is often associated with a simple action: grabbing a taskbar and moving it to another date. But project planning involves many other operations that could benefit from the same interaction. For example, users may need to move several tasks together without breaking their dependencies, relocate a parent task along with its subtasks, or rearrange the structure of a project directly in the chart.</p><p>Supporting these scenarios requires more than the default ability to move taskbars along the timeline. DHTMLX <a href="https://dhtmlx.com/docs/products/dhtmlxGantt/">JavaScript Gantt chart </a>provides a set of API options, events, and extensions that let developers adjust the standard behavior or implement their own drag-and-drop interactions. This makes it possible to account for different scheduling rules and build workflows that feel natural to the people working with the chart.</p><p>Let’s take a closer look at the available options, starting with ordinary task rescheduling and moving on to more advanced ways of using drag-and-drop in DHTMLX Gantt.</p><h3>Moving Taskbars Across the Timeline</h3><p>The most familiar drag-and-drop operation in a Gantt chart is changing a task’s dates directly on the timeline. In DHTMLX Gantt, users can do this without any additional configuration. They simply move the taskbar to the required position, and the component updates its start and end dates while preserving the task duration. This is often much faster than opening the task editor and entering new dates manually.</p><p>Moving a task to a distant date is also straightforward. When the user approaches the edge of the visible timeline during dragging, the built-in autoscrolling helps reveal the required time period.</p><p>However, default task movement may not cover all the rules of a real project schedule. Some tasks should remain fixed, others can only be rescheduled within a particular period, and moving a task may also require adjusting the position of related items. Developers can account for such requirements through three API events: <strong>onBeforeTaskDrag</strong>, <strong>onTaskDrag</strong>, and <strong>onAfterTaskDrag</strong>. Each event corresponds to a different stage of the dragging process and can be used to introduce additional logic.</p><p>For example, you can use these events to:</p><ul><li>keep selected tasks from being moved;</li><li>set date boundaries that restrict how far a task can be dragged;</li><li>make a parent task and its children move together;</li><li>move tasks connected by dependencies while maintaining the relationships between them.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/1*0BCYrYm8vx9rMAoGcTJOTw.gif" /><figcaption>Dragging taskbars along the timeline</figcaption></figure><p><a href="https://docs.dhtmlx.com/gantt/samples/08_api/19_draggable_projects.html">Check the sample</a></p><p>If you want to implement these scenarios, the<a href="https://docs.dhtmlx.com/gantt/guides/dnd/#dragging-children-together-with-the-parent"> documentation on dragging children together with their parent</a> explains the relevant configuration options. We also have a separate guide covering different approaches to<a href="https://docs.dhtmlx.com/gantt/guides/dragging-dependent-tasks/"> dragging dependent tasks</a>.</p><p>These API options give developers control over the rules that apply when users move tasks. But there’s another aspect worth considering: the feedback the chart provides during the operation. Depending on the workflow, users may need to see the proposed destination more clearly, compare the old and new positions, or confirm a change before it takes effect.</p><h3>Customizing Drag-and-Drop Interactions in DHTMLX Gantt</h3><p>The standard dragging mechanism doesn’t have to determine every detail of the user experience. With custom implementations, developers can change how the chart responds while a task is being moved and provide additional visual guidance. Here are several examples of what this can look like:</p><ul><li><a href="https://snippet.dhtmlx.com/626lf2z6?text=gantt&amp;mode=wide"><strong>Drag preview</strong></a></li></ul><p>When users move a taskbar, its original position normally changes along with the drag operation. A different approach is to keep the initial taskbar visible and display a preview of its proposed location. This way, users can see both positions at once and compare the existing schedule with the change they are about to make.</p><ul><li><a href="https://docs.dhtmlx.com/gantt/demos/highlight-drag-position/"><strong>Highlighting the drag position</strong></a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*9soEBTmm1_WqB8-zZAuLsQ.gif" /><figcaption>Highlighting the drag position</figcaption></figure><p>Another useful visual cue is to highlight the place where the taskbar is expected to appear after the drop. As the user moves the task, the chart marks its prospective position at the intersection of the timeline and timescale. This can make a noticeable difference in data-heavy Gantt charts, where numerous taskbars may occupy the same area and precise placement is not always easy.</p><ul><li><a href="https://snippet.dhtmlx.com/so6hj2mb?text=gantt&amp;mode=wide"><strong>Snapping to timeline cells</strong></a></li></ul><p>Not every project schedule requires arbitrary positioning of tasks. In many cases, work is planned around clearly defined periods, such as individual days. For these workflows, taskbars can be configured to snap to timeline cells while being dragged. The chart aligns the task with the corresponding time boundaries, so users don’t have to position it with exact precision themselves.</p><ul><li><a href="https://snippet.dhtmlx.com/3wlplxa0?text=gantt&amp;mode=wide"><strong>Confirmation dialog</strong></a></li></ul><p>Sometimes it’s better not to apply a schedule change immediately after a taskbar is dropped. A user may move the wrong task or choose an unintended date, and such a change could have consequences for other parts of the project schedule. A confirmation dialog adds an extra step before the update is applied. Users can approve the new position or cancel the operation and return the taskbar to its original location.</p><ul><li><a href="https://docs.dhtmlx.com/gantt/demos/split-tasks/"><strong>Merging split tasks</strong></a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*LzAGkfGRVAGsaukXNrsZaQ.gif" /><figcaption>Merging split tasks</figcaption></figure><p>Rescheduling a task that consists of several separate segments can be less convenient than moving a single continuous taskbar. To simplify this operation, you can temporarily combine the segments into one bar. Users can then work with the task as a whole, see its overall duration, and move it to another place on the timeline in one go. Once the dragging operation is finished, the original split-task structure can be restored.</p><p>As these examples show, developers can change not only the rules governing task movement but also the way users interact with the chart during rescheduling. And task dates aren’t the only part of a project that can be rearranged with drag-and-drop. The same principle applies to the task hierarchy.</p><h3>Reordering Tasks with Vertical Drag-and-Drop</h3><p>A project’s structure can change even when the dates in its schedule stay exactly the same. For instance, users may need to move a task to another position in the hierarchy. DHTMLX Gantt supports this operation through vertical dragging in the grid panel.</p><p>The behavior is controlled by the <strong>order_branch</strong> property, which offers two alternatives:</p><ul><li><strong>order_branch = true</strong> - the task changes its position in the hierarchy while the user is dragging it;</li><li><strong>order_branch = “marker” </strong>- the task remains in its current position, and a marker indicates where it will be placed once the user drops it.</li></ul><p><strong><em>Note:</em></strong><em> We recommend the marker-based mode. It gives users a clearer idea of the resulting position before they complete the operation and also ensures better performance.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*w1cGB7xj_AuxRbetqRLrKA.gif" /><figcaption>Vertical drag-and-drop</figcaption></figure><p><a href="https://docs.dhtmlx.com/gantt/samples/07_grid/08_drag_between_levels.html">Check the sample</a></p><p>The grid isn’t the only place where vertical reordering can be implemented. If you need users to rearrange tasks directly in the timeline, we provide<a href="https://docs.dhtmlx.com/gantt/guides/how-to/#how-to-vertically-reorder-tasks-in-the-timeline"> custom solutions for working with both regular and split tasks</a>.</p><p>This gives users a convenient way to reorganize the project hierarchy without having to switch to another interface or edit task properties individually. But what if the operation involves something outside the Gantt chart? Drag-and-drop can also be used to connect the chart with other elements of a web application.</p><h3>Using Drag-and-Drop Between Gantt and Other App Components</h3><p>Project planning interfaces often contain more than one working area. Alongside the Gantt chart, an application might have a panel with available resources, a collection of unscheduled tasks, or other components that provide information needed for scheduling. A custom drag-and-drop implementation can connect these areas and let users transfer items directly into the Gantt workflow.</p><p>For example, imagine that users have a separate list of tasks that haven’t been assigned dates yet. Instead of opening each task and adding it to the schedule manually, they can drag it from the list into the Gantt chart. A similar approach can be used with a workload panel containing available resources.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*eFPfGTUEvY84RAqENJkQlw.gif" /><figcaption>Extending Drag-and-Drop</figcaption></figure><p><a href="https://docs.dhtmlx.com/gantt/demos/team-planner/">Check the sample</a></p><p>Another situation where this approach comes in handy is an application that displays two Gantt charts. They may represent different projects, teams, or stages of the planning process. When a task needs to be transferred between them, users don’t have to recreate it in the destination chart. They can simply<a href="https://snippet.dhtmlx.com/klzmnz0w?text=gantt&amp;mode=wide"> drag the task from one Gantt instance to the other</a>.</p><p>So far, we’ve covered several ways to work with tasks and project data through dragging. There are also a number of smaller interactions that deserve attention, including changing task duration, updating progress, moving the timeline, and adjusting the chart layout.</p><h3>More Drag-and-Drop Options in DHTMLX Gantt</h3><p>Some drag-based operations focus on individual task properties rather than the task’s position in the project. One example is resizing a taskbar. The <strong>drag_resize</strong> property adds handles to its edges, which users can pull to change the task’s start or end date and, as a result, its duration.</p><p>You can also decide which resizing operations should be available. For instance, if users shouldn’t be able to change the end date, you can disable the corresponding handle. The same applies to resizing from the start date or disabling task resizing altogether. The example below demonstrates a configuration where the end-date resizing control is turned off.</p><p>Task completion can be adjusted through dragging as well. The <strong>show_progress</strong> property displays a progress bar that represents how much of the task has been completed. This element can be customized to support different workflows. For example, you can<a href="https://snippet.dhtmlx.com/ggkdxyyy?text=gantt&amp;mode=wide"> replace the usual single progress bar with two draggable progress bars</a> on the same taskbar.</p><p>There are also extensions that change how users interact with the timeline and create or select tasks. The <strong>drag_timeline</strong> extension lets users move the timeline itself by dragging it. Another option, <strong>click_drag</strong>, supports several additional operations:</p><ul><li>creating tasks;</li><li>selecting tasks (PRO edition);</li><li>setting time for unscheduled tasks;</li><li>adding parts to a split task (PRO edition).</li></ul><p>More information about these and other drag-and-drop options is available in the<a href="https://docs.dhtmlx.com/gantt/guides/advanced-dnd/"> documentation</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*807eznZfnq-U9mLN3eycEQ.gif" /><figcaption>Selecting and dragging several tasks</figcaption></figure><p><a href="https://snippet.dhtmlx.com/s3r9tp5s?tag=gantt&amp;mode=wide">Check the sample</a></p><p>Finally, drag-and-drop can be useful even when users aren’t working with tasks directly. It can help them adjust the Gantt interface by changing grid column widths, modifying task heights, or resizing individual cells in the layout.</p><h3>Wrapping Up</h3><p>The way users work with a project schedule isn’t limited to moving taskbars from one date to another. They may need to change task relationships, reorganize the project hierarchy, update task details, or transfer information between different parts of an application. Drag-and-drop can make all these operations more accessible directly from the Gantt interface.</p><p>DHTMLX Gantt provides several ways to support these workflows. Developers can build on the default interactions, apply additional rules through the API, or implement custom behavior where the standard options aren’t enough. This flexibility makes it possible to adapt the editing experience to the particular requirements of an application and the way its users manage project schedules.</p><p><em>This article was originally published on the </em><a href="https://dhtmlx.com/blog/exploring-rich-drag-drop-capabilities-dhtmlx-gantt/"><em>DHTMLX blog</em></a><em> on October 2, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a270836eac55" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using DHTMLX React Gantt and Remix for Project Planning Apps]]></title>
            <link>https://dhtmlx.medium.com/using-dhtmlx-react-gantt-and-remix-for-project-planning-apps-540f0453757b?source=rss-e9c0a531d5e5------2</link>
            <guid isPermaLink="false">https://medium.com/p/540f0453757b</guid>
            <category><![CDATA[gantt-chart]]></category>
            <category><![CDATA[remix]]></category>
            <category><![CDATA[project-management]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[JavaScript UI Libraries — DHTMLX]]></dc:creator>
            <pubDate>Tue, 04 Aug 2026 11:04:57 GMT</pubDate>
            <atom:updated>2026-08-04T11:04:57.624Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xTPDljDdp9M-6v_5toLNww.png" /></figure><p>Building a project planning app in React often means dealing with two competing needs: rich client-side interactions and efficient data delivery. As datasets become larger and workflows become more complex, keeping a scheduling interface fast and responsive requires the right architecture.</p><p>This is where server-side rendering frameworks like <a href="https://remix.run/">Remix</a> can help. Combined with <a href="https://dhtmlx.com/docs/products/dhtmlxGantt-for-React/">DHTMLX React Gantt</a>, they provide a solid foundation for building project management interfaces that handle data loading more efficiently while keeping the UI flexible. In this article, we’ll look at the key aspects of integrating React Gantt with Remix and use the official <a href="https://github.com/DHTMLX/react-gantt-remix-starter">react-gantt-remix-starter demo </a>as a practical example.</p><h3>What Remix Adds to a React Gantt Application</h3><p>We previously looked at how SSR frameworks can work together with complex UI components using the example of <a href="https://dhtmlx.com/blog/why-use-dhtmlx-gantt-for-react-with-next-js-in-project-management-apps/">DHTMLX React Gantt and Next.js</a>. Remix approaches the same problem from a slightly different angle. Instead of introducing its own data-fetching layer, the framework stays closer to standard web APIs and builds on top of React Router.</p><p>This philosophy leads to a more explicit application structure, where routing and data flows are easier to follow. For applications with data-heavy interfaces such as Gantt charts, scheduling tools, or dashboards, this can be especially useful because user interactions often need to stay connected with server-side data operations.</p><p>In our starter demo, we focus on one specific part of this integration: how the rendering flow works between Remix and React Gantt. The example covers:</p><ul><li>route-based data loading</li><li>keeping the Gantt configuration stable</li><li>updating the Gantt interface</li><li>accessing the Gantt API when needed</li></ul><p>The demo intentionally does not go into Remix loaders, actions, or backend persistence. Those topics depend heavily on the application architecture. Instead, the goal is to demonstrate how DHTMLX React Gantt fits into the Remix rendering model without requiring additional SSR-specific workarounds.</p><p>Starting from version 9.0.12, DHTMLX React Gantt supports SSR frameworks such as Next.js and Remix out of the box. You don’t need extra client-only wrappers or special configuration to use the component in these environments.</p><h3>Integration Details: Connecting Remix and DHTMLX React Gantt</h3><p>Let’s look closer at the main integration points that make the Remix + DHTMLX React Gantt setup work in practice.</p><h4>Rendering Gantt Inside a Remix Route</h4><p>The demo keeps the Gantt implementation isolated inside a dedicated Gantt Chart component. From the Remix side, there is nothing special required. The component can be imported into a regular route and rendered like any other React component.</p><pre>import GanttChart from &#39;~/components/Gantt/Gantt&#39;;<br>import type { Route } from &#39;./+types/home&#39;;<br>import { tasks, links } from &#39;~/data/demoData&#39;;<br><br>export default function Home() {<br>  return (<br>    &lt;div style={{ width: &#39;100vw&#39;, height: &#39;100vh&#39; }}&gt;<br>      &lt;GanttChart tasks={tasks} links={links} /&gt;<br>    &lt;/div&gt;<br>  );<br>}</pre><p>The route handles the overall page structure and data flow, while React Gantt is responsible for displaying the chart and processing user interactions. Tasks and links are passed through props, and any modifications made in the UI are returned through the <strong>save</strong> callback.</p><p>The example uses static data for simplicity, but the same pattern can be extended to data loaded on the server with Remix loaders.</p><p>One small detail that is easy to overlook: the Gantt container needs an explicit size. Without a defined height (for example, <strong>width: ‘100vw’, height: ‘100vh’</strong>), the chart may not render correctly even though the component itself is mounted successfully.</p><h4>Keeping the Gantt Configuration Stable</h4><p>The <strong>GanttConfig</strong> object controls how the chart behaves and looks, from scales and dates to interface settings.</p><p>In React applications, objects created during rendering get new references on every render. For Gantt configuration, this can lead to unnecessary chart reinitialization. To avoid that, the demo keeps the configuration stable with the <strong>useMemo</strong> hook:</p><pre>const config: GanttConfig = useMemo(<br>  () =&gt; ({<br>    grid_width: 500,<br>    scale_height: 90,<br>    scales: [<br>      { unit: &#39;year&#39;, step: 1, date: &#39;%Y&#39; },<br>      { unit: &#39;month&#39;, step: 1, date: &#39;%M&#39; },<br>      { unit: &#39;day&#39;, step: 1, date: &#39;%d %M&#39; },<br>    ],<br>  }),<br>  []<br>);</pre><p>The object is created once and reused throughout the component lifecycle, preventing unnecessary updates.</p><h4>Processing User Changes with data.save</h4><p>A Gantt chart is not just a visualization layer. Users constantly modify it — creating tasks, changing dates, updating dependencies, or removing items.</p><p>DHTMLX React Gantt exposes these changes through the <strong>data.save</strong> callback:</p><pre>data={{<br>  save: (entity: string, action: string, data: Task | Link, id: string | number) =&gt; {<br>    console.log(`${entity} - ${action} - ${id}`, data);<br>  },<br>}}</pre><p>In the starter project, the callback only outputs changes to the console. In a production application, this is the place where you would connect updates with Remix actions, API calls, or your own state management logic.</p><p>The exact approach depends on the application architecture, but the callback provides the bridge between Gantt interactions and your data layer.</p><h4>Accessing the Gantt API When Needed</h4><p>Some scenarios require more than declarative React props. For example, you may need to navigate the chart programmatically, retrieve task information, or apply custom behavior.</p><p>The demo keeps a reference to the Gantt instance using React’s <strong>useRef</strong> hook:</p><pre>const ganttRef = useRef&lt;ReactGanttRef&gt;(null);<br><br>const gantt = ganttRef.current?.instance;<br>if (!gantt) return;<br><br>// here you can call any Gantt API method<br>console.log(&#39;All tasks:&#39;, gantt.getTaskByTime());<br>gantt.showDate(new Date());</pre><p>This gives you direct access to the underlying Gantt API without forcing unnecessary React re-renders.</p><p>For a simple chart, you may never need this approach. But as requirements grow and custom interactions appear, having access to the API makes further customization much easier.</p><p>With these integration points in mind, working with the <a href="https://github.com/DHTMLX/react-gantt-remix-starter">react-gantt-remix-starter</a> repository and the accompanying <a href="https://docs.dhtmlx.com/gantt/integrations/react/remix/">guide</a> becomes much more straightforward.</p><h4>Wrapping Up</h4><p>The Remix starter demo shows one possible way to combine a full-stack React framework with a feature-rich UI component like DHTMLX React Gantt. The main idea is not to provide a complete application architecture, but to demonstrate how the rendering flow, data handling, and Gantt interactions can fit into a Remix-based project.</p><p>From here, you can adapt the same approach to your own requirements, whether that means adding server-side persistence, integrating a state management solution, or extending the Gantt functionality with custom logic. Together with the documentation guide, the demo provides a practical starting point for building SSR-friendly project planning applications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=540f0453757b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding DHTMLX Gantt Licenses: GPL,MIT, and PRO]]></title>
            <link>https://dhtmlx.medium.com/understanding-dhtmlx-gantt-licenses-gpl-mit-and-pro-eada4c60b315?source=rss-e9c0a531d5e5------2</link>
            <guid isPermaLink="false">https://medium.com/p/eada4c60b315</guid>
            <category><![CDATA[gantt-chart]]></category>
            <category><![CDATA[project-management]]></category>
            <category><![CDATA[licensing]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[JavaScript UI Libraries — DHTMLX]]></dc:creator>
            <pubDate>Fri, 10 Jul 2026 14:00:07 GMT</pubDate>
            <atom:updated>2026-07-10T14:00:07.767Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i6ouyVUR-Zo_v5ZSQctbHw.png" /></figure><p>Many developers choose DHTMLX Gantt because it combines strong performance with extensive customization options. Licensing has also been one of its advantages. For years, the library was available under the GPL license, making it a practical choice for many open-source projects. More recently, DHTMLX introduced a Community Edition under the more permissive MIT license, giving developers greater flexibility. In this article, we’ll break down the available licensing options, explain what changed with the Community Edition, and discuss when it makes sense to move to the commercial PRO edition.</p><h3>GPL License: Still Available for Existing Projects, but Not the Default Choice</h3><p>The GPL version of DHTMLX Gantt has its place, but today it is mainly relevant for developers who are already working with older releases. If your project is based on Gantt v9.x or earlier, you can continue using the GPL edition <a href="https://github.com/DHTMLX/gantt/releases">available on GitHub</a>.</p><p>For new development, however, GPL is no longer the recommended route. The release of the MIT-licensed Community Edition changed the situation by providing a simpler option for projects that need more freedom in how the component is used and distributed.</p><p>This does not make GPL unsuitable. It can still be a practical choice when the main goal is experimenting with Gantt functionality, creating educational examples, or maintaining an open-source project that already relies on an older version.</p><p>Typical scenarios where the GPL JavaScript Gantt chart can still be considered include:</p><ul><li>learning how Gantt functionality works before starting a larger project;</li><li>building proof-of-concept applications;</li><li>maintaining existing open-source solutions based on previous DHTMLX Gantt releases.</li></ul><p>If you are starting a new application and want to work with the latest DHTMLX Gantt versions, the MIT Community Edition is usually a better starting point.</p><h3>MIT License: More Freedom for Modern Applications</h3><p>For many developers, licensing is not something they want to think about every time they add a library to a project. This is where the MIT-licensed <a href="https://dhtmlx.com/docs/products/dhtmlxGantt/open-source/">DHTMLX Gantt Community Edition</a> changes the experience.</p><p>The MIT model removes many of the restrictions associated with stronger copyleft licenses. Developers can integrate the component into open-source projects, internal tools, and commercial applications without the requirement to make their own source code publicly available.</p><p>Of course, MIT does not mean “no rules at all.” Projects using DHTMLX Gantt still need to preserve the original copyright notice and include the license text according to MIT requirements.</p><p>From a technical perspective, the Community Edition covers the core functionality required for implementing a JavaScript Gantt chart. Developers can customize the component through its API, adapt it to application requirements, and integrate it into projects built with different technologies.</p><p>This makes the MIT edition a suitable option for:</p><ul><li>products with standard project planning workflows;</li><li>startups that want to validate ideas before investing in additional functionality;</li><li>internal business applications;</li><li>commercial apps that do not yet require PRO features.</li></ul><p>Another advantage is the ability to change direction later. If project requirements become more advanced, teams can move from the <a href="https://docs.dhtmlx.com/gantt/guides/installation/#adding-pro-edition-into-project">Community Edition to the PRO edition</a> instead of rebuilding the application from scratch.</p><h3>PRO License: When Standard Gantt Functionality Is No Longer Enough</h3><p>Many projects start with basic scheduling requirements. A team may only need to display tasks on a timeline, visualize dependencies, or add a simple planning view to an internal tool. In these cases, the Community Edition can often cover the required functionality.</p><p>The situation changes when the Gantt chart becomes a core part of a product. Enterprise applications usually involve more complicated workflows: automatic scheduling, resource allocation, large datasets, advanced task management, and integration with existing business processes. At this stage, having access to ready-made capabilities can save significant development time.</p><p>This is where the commercial DHTMLX Gantt PRO edition comes into play. Instead of building complex functionality from scratch, teams get access to a collection of advanced features designed for professional project management scenarios.</p><p>The PRO version includes capabilities such as:</p><ul><li>scheduling automation tools;</li><li>resource management features;</li><li>enhanced task handling;</li><li>watermark-free export options;</li><li>framework wrappers for React, Angular, and Vue.</li></ul><p>The availability of framework integrations is especially useful for teams working with modern frontend stacks. Instead of creating custom integration layers, developers can use dedicated wrappers designed to work with popular frameworks.</p><p>You can check the detailed differences between the Community Edition and PRO edition in the <a href="https://docs.dhtmlx.com/gantt/guides/editions-comparison/">feature comparison guide</a>.</p><p>Another factor that often matters for production applications is technical support. Commercial licensing provides access to assistance from the DHTMLX team when teams face complex configuration questions, customization tasks, or unexpected issues during development.</p><p>Depending on the selected license plan, organizations can also receive additional maintenance options and other services that help support long-term projects.</p><p>For these reasons, the commercial <a href="https://dhtmlx.com/docs/products/dhtmlxGantt/">JavaScript Gantt chart</a> version is commonly considered for applications such as:</p><ul><li>enterprise project management platforms;</li><li>complex scheduling and resource planning systems;</li><li>SaaS products and proprietary business applications.</li></ul><p>The main advantage of the PRO edition is not just the number of additional features. It is the ability to reduce development effort when a Gantt chart becomes a critical part of a larger system.</p><h3>Wrapping Up</h3><p>The best DHTMLX Gantt license depends on where your project is today and where it is expected to go next. For developers maintaining older open-source projects, the GPL version of DHTMLX Gantt remains available for legacy releases. New projects that need a flexible and permissive licensing model can use the MIT-licensed Community Edition, while teams building enterprise applications with advanced scheduling requirements can benefit from the additional capabilities of the PRO edition.</p><p>This flexibility allows developers to start with the functionality they need and adopt more advanced options when project requirements become more complex. Whether you are creating a prototype, an internal tool, or a full-scale business platform, DHTMLX Gantt provides a licensing path that can match different stages of development.</p><p><em>This article was originally published on the </em><a href="https://dhtmlx.com/blog/dhtmlx-gantt-licensing-options-explained-gpl-mit-community-pro-editions/"><em>DHTMLX blog</em></a><em> on June 25, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eada4c60b315" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Structuring React Gantt State with Jotai’s Atomic Model]]></title>
            <link>https://dhtmlx.medium.com/structuring-react-gantt-state-with-jotais-atomic-model-6531ea441811?source=rss-e9c0a531d5e5------2</link>
            <guid isPermaLink="false">https://medium.com/p/6531ea441811</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[gantt-chart]]></category>
            <category><![CDATA[jotai]]></category>
            <category><![CDATA[state-management]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[JavaScript UI Libraries — DHTMLX]]></dc:creator>
            <pubDate>Thu, 28 May 2026 09:02:24 GMT</pubDate>
            <atom:updated>2026-05-28T09:02:24.094Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hr_irKVpxBZleAeSJSB72A.jpeg" /></figure><p>State handling in React tends to get complicated the moment an application grows beyond a few isolated components. With project planning interfaces, the amount of interconnected UI behavior increases very quickly.</p><p>Previously, we explored several ways to organize this kind of logic, including <a href="https://dhtmlx.com/blog/using-dhtmlx-gantt-chart-for-react-with-redux-toolkit-principles-benefits-and-implementation-tips/">Redux Toolkit</a>, <a href="https://dhtmlx.com/blog/using-zustand-state-management-apps-dhtmlx-react-gantt-scheduler/">Zustand</a>, <a href="https://dhtmlx.com/blog/managing-state-dhtmlx-react-gantt-chart-scheduler-mobx/">MobX</a>, and <a href="https://dhtmlx.com/blog/using-xstate-in-react-gantt-and-scheduler-apps-for-complex-state-scenarios/">XState</a>. Jotai approaches the problem differently. Instead of pushing everything into one global store, it breaks the state into isolated atomic units. To demonstrate how that model behaves in practice, we’ll use the <a href="https://github.com/DHTMLX/react-gantt-jotai-starter">react-gantt-jotai-starter</a> project built with <a href="https://dhtmlx.com/docs/products/dhtmlxGantt-for-React/">DHTMLX React Gantt</a>.</p><p>Before moving into the implementation details, it’s worth understanding why Jotai feels noticeably different from more traditional React state libraries.</p><h3>Understanding Jotai’s Atomic Model</h3><p>Jotai was introduced as an alternative to the common <strong>useContext +</strong> <strong>useState</strong> pattern that many React teams eventually outgrow. In larger applications, context-based state often causes broader component updates than expected, and tracking why something re-rendered becomes frustrating surprisingly fast.</p><p>Jotai tries to reduce that friction by keeping the state extremely granular. The library gained traction partly because it stays very close to React’s native hooks philosophy instead of introducing a large architectural layer on top of it. That simplicity is one of the reasons many companies adopted it in production environments.</p><p>People often compare Jotai to Zustand because both libraries avoid heavy configuration and excessive boilerplate. The real distinction appears in how they organize data internally.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JzUH_28fVgHoRxdFroTafw.gif" /><figcaption>Source: State of React 2025</figcaption></figure><p>With Zustand, state typically lives inside a shared store that can later be divided into smaller slices. Jotai removes the idea of a mandatory central store entirely. Instead, every piece of state exists as its own atom. That architectural difference changes how updates propagate through the UI.</p><p>A component subscribes only to the atoms it actually consumes. When one atom changes, unrelated parts of the interface remain untouched. In data-heavy interfaces, this usually leads to more controlled rendering behavior and fewer optimization workarounds.</p><p>The API also stays fairly flexible. Atoms can be combined, derived from one another, or used purely for updates without exposing readable values. Because of that, the same model works both for lightweight local interactions and for more involved application flows.</p><p>Jotai also plays nicely with newer React capabilities, including Suspense and concurrent rendering patterns, which makes it feel relatively future-proof in modern React setups. The trade-off becomes noticeable later.</p><p>As applications expand, the number of atoms can grow rapidly. At that stage, organization becomes critical. Without consistent naming and structure, an atom-based architecture can become just as difficult to navigate as an oversized global store.</p><h3>Why Jotai Works Naturally with React Gantt Interfaces</h3><p>Interactive Gantt components behave differently from ordinary CRUD-style UIs. A seemingly small action like dragging a task along the timeline often triggers several related updates throughout the chart.</p><p>That constant chain reaction is exactly where Jotai starts to feel practical. Because updates are isolated into narrowly scoped atoms, changes remain localized. Rescheduling one task does not force unrelated parts of the application to refresh or recalculate unnecessarily. The update affects only the pieces directly connected to that interaction.</p><p>In practice, this makes state transitions easier to follow. Instead of tracing changes across reducers, middleware, or deeply nested state objects, you usually deal with a much smaller update surface. That becomes especially valuable once a project timeline grows and interactions happen continuously.</p><p>To see why this structure stays manageable, it helps to examine the overall data flow before diving into implementation details.</p><h3>Organizing Data Flow Around Atoms</h3><p>In this setup, the core Gantt data is stored inside a primary atom that acts as the authoritative state source for the chart. Tasks, dependency links, configuration values, and related UI state all live there.</p><p>Updates, however, are intentionally separated. Rather than mutating the main state directly, individual write-only atoms handle specific operations independently. One atom processes task creation, another updates links, another adjusts zoom configuration, and so forth.</p><p>The React Gantt component itself remains mostly passive. Its responsibility is simply to read current state values and pass them into DHTMLX React Gantt through props. When the user interacts with the chart, those interactions are routed through <strong>data.save</strong>, which delegates the update to the appropriate atom.</p><p>What’s important is that the same mechanism applies outside the chart as well. Toolbar actions such as undo, redo, or zoom changes do not introduce separate synchronization logic. They follow the identical update pipeline as interactions originating directly inside the Gantt UI.</p><p>A simplified flow looks roughly like this:</p><p><strong>user interaction → data.save intercepts the change → matching write-only atom executes → history snapshot updates → main Gantt atom changes → React Gantt re-renders with new state</strong></p><p>That consistency is what keeps the architecture understandable once the interface becomes more complex.</p><h3>How the Integration Works in Practice</h3><p>Let’s move from structure to actual behavior and look at how state updates are implemented.</p><h4>1. Keeping Gantt Data Inside Atoms</h4><p>The main state atom holds the full dataset, including tasks, links, and configuration (zoom, etc.):</p><pre>export const ganttStateAtom = atom&lt;GanttState&gt;({  <br>  tasks: seedTasks,  <br>  links: seedLinks,  <br>  config: { zoom: defaultZoomLevels },  <br>});<br><br>const maxHistory = 50;<br><br>export const pastAtom = atom&lt;GanttState[]&gt;([]);  <br>export const futureAtom = atom&lt;GanttState[]&gt;([]);</pre><p>Alongside it, there are two additional atoms: <strong>pastAtom</strong> and <strong>futureAtom</strong>. These are used for undo/redo history.</p><p>To prevent unbounded memory growth, history is capped (for example, at 50 entries). Older snapshots are dropped once the limit is reached.</p><h4>2. Applying Updates Through Write-Only Atoms</h4><p>All modifications happen through dedicated write-only atoms. Each one represents a specific mutation: create, update, or delete.</p><pre>export const addTaskAtom = atom(null, (get, set, task: SerializedTask) =&gt; {  <br>  pushHistory(get, set, get(ganttStateAtom));  <br>  set(ganttStateAtom, {  <br>    ...get(ganttStateAtom),  <br>    tasks: [...get(ganttStateAtom).tasks, { ...task, id: `DB_ID:${task.id}` }],  <br>  });  <br>  return { ...task, id: `DB_ID:${task.id}` };  <br>});</pre><p>Before applying any change, the current state is pushed into history. This ensures undo/redo works reliably later.</p><p>After that, the atom updates <strong>ganttStateAtom</strong> with a new immutable state.</p><p>These atoms are accessed via <strong>useSetAtom</strong>, which allows triggering updates without subscribing to their values. Only the main state atom is read by the UI.</p><h4>3. Translating UI Actions into State Changes</h4><p>User interactions inside DHTMLX React Gantt are not handled directly in the UI layer. Instead, everything goes through <strong>data.save</strong>. This function acts as a bridge between the visual layer and the state layer.</p><p>When a task is created, updated, or removed, the callback translates that action into the corresponding atom call. In creation flows, the updated entity (often with a generated ID) is returned to the Gantt to keep identifiers consistent.</p><p>This small detail prevents common synchronization issues between UI-generated IDs and store-generated IDs.</p><h4>4. Handling Undo and Redo Outside the UI Layer</h4><p>Undo/redo is implemented entirely outside the component layer. Each state change is recorded before mutation. The history stack stores full snapshots of the Gantt state.</p><ul><li><strong>pastAtom</strong> holds previous states</li><li><strong>futureAtom</strong> holds states for redo</li></ul><p>When undo is triggered, the last snapshot is restored and moved into the future stack. Redo performs the opposite operation.</p><p>Because snapshots capture the entire state, undo/redo remains consistent across all types of changes.</p><p>You can continue mastering integration patterns of DHTMLX React Gantt with Jotai using the <a href="https://docs.dhtmlx.com/gantt/integrations/react/state/jotai/">official DHTMLX tutorial</a>.</p><h3>Closing Remarks</h3><p>Jotai fits surprisingly well into a Gantt-based workflow. Its atomic structure keeps updates localized, which is important when working with highly interactive interfaces like DHTMLX React Gantt.</p><p>That said, it’s not a universal solution. As applications scale and the number of atoms grows, maintaining a clear structure becomes a responsibility of the developer rather than the library.</p><p>In smaller or medium-sized systems, it feels lightweight and direct. In larger enterprise setups, centralized approaches can still make more sense depending on the complexity of the shared state.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6531ea441811" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reducing AI Guesswork in React Gantt Projects with a New Agent Skill]]></title>
            <link>https://ai.plainenglish.io/reducing-ai-guesswork-in-react-gantt-projects-with-a-new-agent-skill-842cb83df9a3?source=rss-e9c0a531d5e5------2</link>
            <guid isPermaLink="false">https://medium.com/p/842cb83df9a3</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[gantt-chart]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[skills]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[JavaScript UI Libraries — DHTMLX]]></dc:creator>
            <pubDate>Tue, 12 May 2026 09:03:10 GMT</pubDate>
            <atom:updated>2026-05-22T21:58:52.693Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YsjeMucNcTGpWxH47gHAoA.jpeg" /></figure><p>AI coding assistants have already become part of everyday frontend work. Generating repetitive React code, scaffolding components, or wiring basic logic is no longer the hard part. Problems usually begin later, when the model has to interact with a complex UI library that it does not fully understand.</p><p>That situation is pretty common with project-planning interfaces. A Gantt component is not just another visual widget. It comes with its own data model, interaction patterns, configuration rules, and API specifics. Without proper context, AI tools tend to compensate with assumptions, and the results become unpredictable surprisingly fast.</p><p>To make this workflow more stable for DHTMLX users, we started building agent skills focused on specific products instead of generic prompting tricks.</p><p>The first implementation targets <a href="https://dhtmlx.com/docs/products/dhtmlxGantt-for-React/">DHTMLX React Gantt</a>.</p><h3>How the Skill Changes AI-Assisted Gantt Development</h3><p>The idea behind the <a href="https://docs.dhtmlx.com/gantt/integrations/ai-tools/agent-skills/">React Gantt skill</a> is straightforward: provide AI assistants with clearer operational knowledge of how the component is typically used in React applications.</p><p>Instead of assembling integrations from random examples scattered across the web, the model receives structured guidance tailored specifically for both available package versions - trial (@dhtmlx/trial-react-gantt) and complete (@dhx/react-gantt).</p><p>The skill focuses on areas where AI-generated implementations usually become inconsistent:</p><ul><li>configuring the Gantt component inside React</li><li>handling task and link operations</li><li>applying visual customizations and themes</li><li>implementing more advanced behaviors like resources, undo/redo flows, or task reordering</li></ul><p>In practice, AI coding errors around UI libraries rarely look dramatic at first. More often, the assistant quietly mixes incompatible APIs, invents configuration options, or reproduces patterns from outdated examples. Those issues are especially annoying because they can survive code review until runtime.</p><p>The React Gantt skill is meant to reduce that kind of friction. It provides implementation-oriented instructions based on real integration scenarios and can additionally validate uncertain API details through the DHTMLX MCP infrastructure.</p><p>The result is not “magic AI coding,” but something more useful: responses that stay much closer to real-world React Gantt implementations.</p><p>Installing the skill takes a single command:</p><pre>npx skills add DHTMLX/skills - skill dhtmlx-react-gantt</pre><p>It can be used with AI development tools supporting the Agent Skills format, including Claude Code, Cursor, Copilot, and related environments.</p><p>Another practical detail: the entire skill definition is stored in readable Markdown files. That means developers can inspect the rules directly, adapt them internally, or simply understand why the assistant behaves a certain way during integration tasks.</p><h3>Why Live Documentation Still Matters</h3><p>Even detailed implementation rules have limitations. Frontend libraries evolve continuously. APIs shift, new options appear, old approaches become deprecated, and examples written several months ago may already contain inaccuracies. AI assistants struggle with this particularly hard because their internal knowledge is static by nature.</p><p>That is exactly the problem the <a href="https://dhtmlx.com/docs/products/dhtmlx-mcp-server/">DHTMLX MCP Server</a> is designed to address.</p><p>The React Gantt skill helps the assistant follow correct integration patterns, while the MCP server supplies current technical references directly from the latest DHTMLX documentation. Instead of improvising around uncertain APIs, the model can retrieve relevant information from a live source.</p><p>From a development perspective, these two layers solve different problems:</p><ul><li>the skill improves behavioral consistency</li><li>the MCP server improves factual accuracy</li></ul><p>Combined, they make AI-assisted development around DHTMLX React Gantt feel considerably more dependable than prompt-only workflows.</p><p>The setup itself is lightweight, and the official documentation covers the installation process step by step.</p><p>React Gantt is only the starting point here. The same direction will gradually extend to other DHTMLX components as well, especially where AI tools tend to struggle with library-specific implementation details.</p><h3>A message from our Founder</h3><p>Hey, <a href="https://linkedin.com/in/sunilsandhu">Sunil</a> here. I wanted to take a moment to thank you for reading until the end and for being a part of this community. Did you know that our team run these publications as a volunteer effort to over 3.5m monthly readers? We don’t receive any funding, we do this to support the community.</p><p>If you want to show some love, please take a moment to follow me on <a href="https://linkedin.com/in/sunilsandhu">LinkedIn</a>, <a href="https://tiktok.com/@messyfounder">TikTok</a>, <a href="https://instagram.com/sunilsandhu">Instagram</a>. You can also subscribe to our <a href="https://newsletter.plainenglish.io/">weekly newsletter</a>. And before you go, don’t forget to clap and follow the writer️!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=842cb83df9a3" width="1" height="1" alt=""><hr><p><a href="https://ai.plainenglish.io/reducing-ai-guesswork-in-react-gantt-projects-with-a-new-agent-skill-842cb83df9a3">Reducing AI Guesswork in React Gantt Projects with a New Agent Skill</a> was originally published in <a href="https://ai.plainenglish.io">Artificial Intelligence 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[Managing Complex UI Logic in React Gantt and Scheduler with XState]]></title>
            <link>https://dhtmlx.medium.com/managing-complex-ui-logic-in-react-gantt-and-scheduler-with-xstate-bd34ca4969b4?source=rss-e9c0a531d5e5------2</link>
            <guid isPermaLink="false">https://medium.com/p/bd34ca4969b4</guid>
            <category><![CDATA[state-management]]></category>
            <category><![CDATA[xstate]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[gantt-chart]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[JavaScript UI Libraries — DHTMLX]]></dc:creator>
            <pubDate>Wed, 22 Apr 2026 14:32:07 GMT</pubDate>
            <atom:updated>2026-04-22T14:41:04.021Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KNwKL6h2faIFPHYknI9M_g.png" /></figure><p>State management in a React Gantt app rarely stays simple for long. Once real workflows kick in, updates start triggering other updates, and keeping everything in sync becomes less predictable.</p><p>We’ve tried <a href="https://dhtmlx.com/blog/using-dhtmlx-gantt-chart-for-react-with-redux-toolkit-principles-benefits-and-implementation-tips/">Redux Toolkit</a>, <a href="https://dhtmlx.com/blog/using-zustand-state-management-apps-dhtmlx-react-gantt-scheduler/">Zustand</a>, and <a href="https://dhtmlx.com/blog/managing-state-dhtmlx-react-gantt-chart-scheduler-mobx/">MobX</a> with DHTMLX components, which are solid tools, but all built around the same idea of directly updating state.</p><p>XState flips that perspective. Instead of changing state, you describe how it’s allowed to change. Let’s see what that looks like in React Gantt and Scheduler projects.</p><h3>Understanding XState Through Real React Use Cases</h3><p>XState usually appears in a project at a very specific moment, not at the start, but when state logic becomes annoying to track.</p><p>You start noticing it when simple updates aren’t enough anymore. A task update triggers something else. A UI state depends on multiple async steps. Things stop being local and start affecting each other.</p><p>It works fine in plain JavaScript and integrates with React without friction, but it’s rarely introduced early because the mental shift is real.</p><p>The core idea is finite state machines. Sounds theoretical, but in practice it’s more restrictive than complex: you define allowed states and explicitly describe how transitions happen between them. Nothing “just changes” anymore. That restriction is the point. The image below clearly illustrates the core ideas behind state machines in XState.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*OuQnqYA3Mv4G77jDMgnSqg.png" /><figcaption><em>Source: XState</em></figcaption></figure><p>Every change comes from an event, usually something user-driven. Once that event happens, XState runs actions that update context (its internal state container). Instead of spreading logic across components, everything gets centralized in one place.</p><p>As applications grow, simple state machines don’t always stay simple. That’s where statecharts come in — nested states, parallel flows, separated concerns inside one system. This becomes useful when the UI isn’t doing one thing at a time anymore.</p><p>And when even that isn’t enough, XState introduces actors — separate machines running independently and communicating. It sounds heavy at first, but in larger apps, it often reduces confusion rather than adding to it.</p><p>The end result is less about “managing state” and more about defining allowed behavior.</p><p>Instead of reacting to whatever state happens to be, you define what <em>can</em> happen. That removes entire classes of bugs where the UI ends up in impossible combinations.</p><p>There’s also a broader ecosystem around it, known as the Stately tools, mostly focused on visualizing and inspecting machines. That becomes useful once systems stop fitting in your head.</p><p>We won’t go deeper into theory here. The more interesting question is where this actually helps compared to other approaches.</p><h3>When XState Actually Makes Sense</h3><p>XState is not something most teams pick by default. Most React apps start with Redux Toolkit, Zustand, or MobX because the flow is familiar: update state, UI reacts, done.</p><p>XState doesn’t follow that pattern. You don’t “update state” directly; you describe behavior. That difference takes a bit of adjustment.</p><p>In small apps, it can feel unnecessary. There’s no benefit in modeling everything as a machine if the logic is simple. Where it starts to make sense is when things stop being linear. That usually happens in real-world interfaces with overlapping processes: async operations, dependent updates, and multiple UI states influencing each other.</p><p>This is exactly what shows up in tools like <a href="https://dhtmlx.com/docs/products/dhtmlxGantt-for-React/">DHTMLX React Gantt</a> or <a href="https://dhtmlx.com/docs/products/dhtmlxScheduler-for-React/">DHTMLX React Scheduler</a>.</p><p>At that point, XState stops being “a state library” and becomes a way to control how the system behaves over time.</p><p>We’ll skip architecture discussions and focus on a real integration example instead.</p><h3>Building a Gantt App with XState: Main Integration Steps</h3><p>The integration flow itself isn’t radically different from other state tools. What changes is how the state is represented. With XState, you’re no longer wiring a store, you’re defining a machine.</p><p>We’ll focus on DHTMLX React Gantt, but the same approach applies to DHTMLX React Scheduler.</p><p>If you want to try this setup in your own project, we’ve put together a step-by-step guide for integrating <a href="https://docs.dhtmlx.com/gantt/integrations/react/state/xstate/">XState with DHTMLX React Gantt</a> and a similar walkthrough for <a href="https://docs.dhtmlx.com/scheduler/integrations/react/state/xstate/">React Scheduler</a>. If you prefer to see the full setup in action, there’s also a complete <a href="https://github.com/dhtmlx/react-gantt-xstate-starter">Gantt demo project on GitHub</a>.</p><h4>Building the XState Machine Structure</h4><p>Everything starts with defining what the machine actually holds. Before transitions or events, you define the context shape or what lives inside the system.</p><pre>import { createMachine, assign } from &#39;xstate&#39;;  <br>import type { Link, GanttConfig, SerializedTask } from &#39;@dhtmlx/trial-react-gantt&#39;;  <br>import { seedTasks, seedLinks, defaultZoomLevels, type ZoomLevel } from &#39;./seed/Seed&#39;;<br><br>export interface Snapshot {  <br>  tasks: SerializedTask[];  <br>  links: Link[];  <br>  config: GanttConfig;  <br>}<br><br>export interface ContextType {  <br>  tasks: SerializedTask[];  <br>  links: Link[];  <br>  config: GanttConfig;<br><br>  past: Snapshot[];  <br>  future: Snapshot[];  <br>  maxHistory: number;  <br>}</pre><p>What matters here isn’t syntax. It’s separation. <strong>Context</strong> holds the live state (tasks, links, config, history). <strong>Snapshot</strong> exists for one reason: so undo/redo doesn’t turn into guesswork. Instead of reconstructing previous states, you store them explicitly. That small decision makes history logic much easier to reason about later.</p><h4>How State Changes Are Defined</h4><p>Once the structure is in place, things shift from modeling to interaction. Now it’s about what happens when the user actually does something.</p><p>With XState, every meaningful interaction becomes an event. In a Gantt app, that’s basically everything (task edits, link updates, zoom changes, undo/redo actions).</p><p>So instead of spreading logic across components, you describe events explicitly:</p><pre>type SetZoomEvent = { type: &#39;SET_ZOOM&#39;; level: ZoomLevel };  <br>type UndoEvent = { type: &#39;UNDO&#39; };  <br>type RedoEvent = { type: &#39;REDO&#39; };  <br>type AddTaskEvent = { type: &#39;ADD_TASK&#39;; task: SerializedTask };  <br>type UpsertTaskEvent = { type: &#39;UPSERT_TASK&#39;; task: SerializedTask };  <br>type DeleteTaskEvent = { type: &#39;DELETE_TASK&#39;; id: string | number };  <br>type AddLinkEvent = { type: &#39;ADD_LINK&#39;; link: Link };  <br>type UpsertLinkEvent = { type: &#39;UPSERT_LINK&#39;; link: Link };  <br>type DeleteLinkEvent = { type: &#39;DELETE_LINK&#39;; id: string | number };<br><br>type EventType =  <br>  | SetZoomEvent  <br>  | UndoEvent  <br>  | RedoEvent  <br>  | AddTaskEvent  <br>  | UpsertTaskEvent  <br>  | DeleteTaskEvent  <br>  | AddLinkEvent  <br>  | UpsertLinkEvent  <br>  | DeleteLinkEvent;</pre><p>Nothing fancy here, just a list of possible actions in the system. But it changes the way you think about UI: nothing happens implicitly anymore. From there, each event maps to an action that updates the state.</p><pre>addTask: assign(({ context: ctx, event }) =&gt; ({  <br>  tasks: [...ctx.tasks, { ...(event as AddTaskEvent).task, id: `DB_ID:${(event as AddTaskEvent).task.id}` }],  <br>})),<br><br>upsertTask: assign(({ context: ctx, event }) =&gt; ({  <br>  tasks: ctx.tasks.map((task) =&gt;  <br>    String(task.id) === String((event as UpsertTaskEvent).task.id)  <br>      ? { ...task, ...(event as UpsertTaskEvent).task }  <br>      : task  <br>  ),  <br>})),<br><br>deleteTask: assign(({ context, event }) =&gt; ({  <br>  tasks: context.tasks.filter((t) =&gt; String(t.id) !== String((event as DeleteTaskEvent).id)),  <br>})),</pre><p>After a few of these, a pattern emerges. It’s repetitive, but intentionally so. The important shift is that the state is no longer updated directly. Everything goes throughassign, which builds a new context from the current state and the event.</p><p>That alone changes debugging behavior. You stop searching for hidden mutations and instead follow event flow.</p><h4>Creating the Machine Configuration</h4><p>At some point, everything gets wired together — context, events, and actions inside one machine.</p><p>Before that, there’s one detail worth calling out <strong>snapshots</strong>:</p><pre>const createSnapshot = (ctx: ContextType): Snapshot =&gt; ({  <br>  tasks: structuredClone(ctx.tasks),  <br>  links: structuredClone(ctx.links),  <br>  config: structuredClone(ctx.config),  <br>});</pre><p>Not exciting code, but without it, undo/redo becomes unreliable quickly. Now the machine itself:</p><pre>export const ganttMachine = createMachine(  <br>  {  <br>    id: &#39;gantt&#39;,  <br>    types: {  <br>      context: {} as ContextType,  <br>      events: {} as EventType,  <br>    },  <br>    context: {  <br>      tasks: seedTasks,  <br>      links: seedLinks,  <br>      config: { zoom: defaultZoomLevels },  <br>      past: [],  <br>      future: [],  <br>      maxHistory: 50,  <br>    },  <br>    initial: &#39;ready&#39;,  <br>    states: {  <br>      ready: {  <br>        on: {  <br>          SET_ZOOM: { actions: [&#39;pushHistory&#39;, &#39;setZoom&#39;] },  <br>          UNDO: { actions: &#39;undo&#39; },  <br>          REDO: { actions: &#39;redo&#39; },<br><br>          ADD_TASK: { actions: [&#39;pushHistory&#39;, &#39;addTask&#39;] },  <br>          UPSERT_TASK: { actions: [&#39;pushHistory&#39;, &#39;upsertTask&#39;] },  <br>          DELETE_TASK: { actions: [&#39;pushHistory&#39;, &#39;deleteTask&#39;] },<br><br>          ADD_LINK: { actions: [&#39;pushHistory&#39;, &#39;addLink&#39;] },  <br>          UPSERT_LINK: { actions: [&#39;pushHistory&#39;, &#39;upsertLink&#39;] },  <br>          DELETE_LINK: { actions: [&#39;pushHistory&#39;, &#39;deleteLink&#39;] },  <br>        },  <br>      },  <br>    },  <br>  },<br>)</pre><p>There’s only one real state here, namelyready. That’s intentional. The machine acts more like a controlled dispatcher than a multi-state workflow. Every event and action goes through it. Compared to Redux Toolkit or Zustand, where you call functions directly, this feels more indirect at first. But that’s also what makes it traceable. You don’t mutate anything manually. You send an event, and the machine decides what happens next.</p><h4>Wiring Gantt UI Actions to the State Machine</h4><p>This is where UI finally connects to the machine. In DHTMLX React Gantt, everything flows through data.save.</p><pre>const data: ReactGanttProps[&#39;data&#39;] = useMemo(  <br>  () =&gt; ({  <br>    save: (entity, action, item, id) =&gt; {  <br>      if (entity === &#39;task&#39;) {  <br>        const task = item as SerializedTask;  <br>        if (action === &#39;create&#39;) {  <br>          send({ type: &#39;ADD_TASK&#39;, task });  <br>        } else if (action === &#39;update&#39;) {  <br>          send({ type: &#39;UPSERT_TASK&#39;, task });  <br>        } else if (action === &#39;delete&#39;) {  <br>          send({ type: &#39;DELETE_TASK&#39;, id });  <br>        }  <br>      } else if (entity === &#39;link&#39;) {  <br>        const link = item as Link;  <br>        if (action === &#39;create&#39;) {  <br>          send({ type: &#39;ADD_LINK&#39;, link });  <br>        } else if (action === &#39;update&#39;) {  <br>          send({ type: &#39;UPSERT_LINK&#39;, link });  <br>        } else if (action === &#39;delete&#39;) {  <br>          send({ type: &#39;DELETE_LINK&#39;, id });  <br>        }  <br>      }  <br>    },  <br>  }),  <br>  [send]  <br>);</pre><p>Each user interaction hits this callback first. Instead of updating the state locally, we just send an event into XState. After that, the UI doesn’t decide anything. It just reports what happened.</p><p>The Gantt component itself stays intentionally “dumb”; it doesn’t own state, doesn’t mutate anything. It only renders props. That separation is what keeps behavior predictable when the app grows.</p><p>The full loop looks like this:</p><p><strong>User action → data.save → event sent → machine processes it → context updates → props update → UI re-renders</strong></p><p>The same idea applies to DHTMLX React Scheduler.</p><h3>Conclusion</h3><p>XState isn’t something you reach for by default. In smaller apps, it often feels like unnecessary structure. A bit heavy, a bit rigid. But once UI logic stops being linear, especially in systems like Gantt charts or schedulers, things change. State stops being just data. It becomes behavior over time. In those cases, modeling transitions explicitly tends to reduce uncertainty as the system grows. Not simpler upfront, but usually more stable later. Still, it’s not a universal choice. If the problem doesn’t need that level of structure, XState is probably more than you want.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd34ca4969b4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scaling AI Knowledge Systems: Lessons from the DHTMLX MCP Server]]></title>
            <link>https://ai.plainenglish.io/scaling-ai-knowledge-systems-lessons-from-the-dhtmlx-mcp-server-6d3de12a5901?source=rss-e9c0a531d5e5------2</link>
            <guid isPermaLink="false">https://medium.com/p/6d3de12a5901</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[mcp-server]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[JavaScript UI Libraries — DHTMLX]]></dc:creator>
            <pubDate>Tue, 17 Mar 2026 17:19:23 GMT</pubDate>
            <atom:updated>2026-03-19T01:39:30.534Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nbD9cvUAKfsb7fwhW5PJDA.png" /></figure><p>Not long ago, we introduced the <a href="https://dhtmlx.com/docs/products/dhtmlx-mcp-server/">DHTMLX MCP Server</a>–a centralized knowledge layer that gives AI assistants and developer tools structured access to the latest documentation across the entire DHTMLX product line, from Suite widgets to Gantt and Scheduler.</p><p>Behind that idea, however, was a fairly tricky engineering problem. It’s one thing to build a knowledge system for a single product. It’s something else entirely to make it work across a full ecosystem without losing accuracy or context.</p><p>At the core of the MCP server is the Retrieval-Augmented Generation (RAG) approach. It pulls relevant fragments from documentation and passes them to LLMs to generate responses grounded in real data. This setup works reliably when you’re dealing with one product. But once multiple products enter the picture, the complexity increases quickly.</p><h3>RAG and MCP: What’s Going On Under the Hood</h3><p>Before getting into implementation details, it helps to align on the basics behind RAG and MCP, since most of the architecture builds on these two ideas.</p><p>So how do you actually turn a Retrieval-Augmented Generation setup into an MCP server?</p><p>At a high level, RAG is about giving an LLM access to external knowledge instead of relying purely on its training data. The process usually breaks down into three steps:</p><ul><li>find relevant pieces of external data (retrieval)</li><li>add that context to the prompt (augmentation)</li><li>produce a response based on that context (generation)</li></ul><p>In practice, the pipeline looks fairly standard. You take your documentation, split it into chunks, convert each chunk into embeddings, and store them in an index. When a query comes in, the system looks for the closest matches using similarity metrics like cosine similarity, then feeds those results into the model.</p><p>Now, where does MCP fit into this?</p><p>The Model Context Protocol acts as a kind of universal connector between AI agents and external systems. A common analogy is a “USB-C port” for AI apps, one interface that can plug into different types of data and functionality.</p><p>Through MCP, an AI system can work with:</p><ul><li>things like API calls or database queries (tools)</li><li>documentation, structured content, reusable logic (resources)</li><li>predefined workflows or few-shot examples (prompts)</li></ul><p>In other words, MCP turns an LLM from a static knowledge source into something that can operate with live, structured context.</p><p>So what does it take to build a system like this?</p><p>In practice, MCP servers with RAG capabilities are often built using a combination of frameworks. A few commonly used ones:</p><ul><li>FastMCP — typically used to implement the MCP layer</li><li>LlamaIndex — well-suited for knowledge-heavy RAG pipelines</li><li>LangChain — often used for agent-style workflows</li></ul><p>There’s also a common misconception that this stack is strictly Python-based. In reality, both LlamaIndex and LangChain support JavaScript, and MCP itself is language-agnostic with SDKs across different ecosystems.</p><p>At first glance, assembling a RAG + MCP setup looks fairly straightforward: pick the tools, connect the pieces, and you’re done.</p><p>But that assumption starts to break once you move beyond a single product. Supporting multiple products, each with its own documentation structure and API surface, introduces a different level of complexity. At that point, the real question becomes not how to build the system, but how to organize the knowledge behind it.</p><h3>Moving Toward a Machine Learning Approach</h3><p>When you first try to scale a Retrieval-Augmented Generation system, the obvious idea is to put everything into a single index. From an infrastructure standpoint, it feels clean and efficient, one place for all product knowledge.</p><p>In practice, though, that approach breaks down pretty quickly.</p><p><a href="https://dhtmlx.com/docs/products/">DHTMLX JavaScript UI components</a> follow very different internal logic. Once you mix their documentation into the same vector space, the system starts to blur the boundaries between them. You might ask about one component and get suggestions that clearly belong to another. API methods get mixed up, examples don’t quite fit, and overall answer quality takes a hit.</p><p>The natural fix was to split the knowledge base. We moved to separate indexes for each product, which immediately improved accuracy within each domain.</p><p>But that introduced a new problem.</p><p>Now the system had to decide where to send each query before retrieval even begins. In other words, we needed a reliable way to map a user’s question to the right product.</p><p>At first, the usual approaches seemed good enough. Things like keyword matching, regular expressions, or fuzzy search are easy to implement. You can also route queries through an LLM and let it classify intent.</p><p>In reality, none of these options held up well:</p><ul><li><strong>heuristic methods</strong> (keywords, regex, fuzzy rules) break easily because user queries vary too much</li><li><strong>LLM-based routing</strong> is flexible, but too slow for a system that needs to handle a high load</li></ul><p>What we actually needed was a balance, something as fast as rule-based logic, but flexible enough to understand real-world queries.</p><p>That’s where we landed on a custom machine learning model for domain classification.</p><h3>A Practical ML Breakthrough</h3><p>At this point, the task became pretty concrete: find a model that’s fast enough to handle requests in milliseconds, but still smart enough to understand technical documentation.</p><p>In practice, that usually turns into a trade-off.</p><p>On one side, you have models with more <strong>parameters</strong>, they tend to understand context better. On the other hand, you have model <strong>size</strong>, the smaller it is, the faster it runs and the less pressure it puts on your infrastructure. The goal was to push both in the right direction at once: keep the model lightweight without sacrificing too much quality.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3vaOzmcZyUpefcj3IX-gvA.png" /></figure><p>So how do you end up with something compact, but still capable of handling nuanced queries about APIs and configuration?</p><p>We leaned on two well-known techniques: distillation and quantization.</p><p><strong>Distillation </strong>works like a “teacher–student” setup. A large, pre-trained model (the teacher) already has a strong grasp of context. Instead of using it directly, you train a smaller model (the student) to imitate its behavior. The student doesn’t carry the full weight of the original model, but it retains a surprising amount of its understanding.</p><p><strong>Quantization</strong> tackles a different part of the problem — size. Normally, model parameters are stored in 32-bit precision. By reducing that precision (in our case, down to 8-bit), you significantly shrink the model without dramatically affecting performance. There are even more aggressive approaches, but this turned out to be a good balance for our needs.</p><p>The result is a model that doesn’t quite follow the usual patterns. It delivers a level of understanding you’d expect from something like BERT variants such as <strong>TinyBERT</strong>, while staying much closer in size to lighter models like <strong>BERT_TINY</strong>.</p><p>More importantly, it hits the balance we were after: solid accuracy, low latency, and predictable resource usage, which is exactly what you need when this piece sits in the middle of every request.</p><h3>Wrapping Up</h3><p>In practice, scaling a knowledge system turned out to be less about adding more data and more about structuring it the right way. Some of the seemingly logical decisions, like unifying everything into a single index, introduced more noise than value, especially once real user queries came into play.</p><p>What made the difference was introducing a lightweight machine learning layer for routing. It gave us the responsiveness we needed under load while still handling the nuances of DHTMLX documentation across products.</p><p>If you’re working with AI-assisted development around DHTMLX components, <a href="https://docs.dhtmlx.com/suite/guides/ai/">adding the MCP server</a> becomes more than just a backend piece. It’s what keeps answers grounded in the latest docs and helps avoid those subtle mismatches that tend to slow teams down in real projects.</p><h3>A message from our Founder</h3><p>Hey, <a href="https://linkedin.com/in/sunilsandhu">Sunil</a> here. I wanted to take a moment to thank you for reading until the end and for being a part of this community. Did you know that our team run these publications as a volunteer effort to over 3.5m monthly readers? We don’t receive any funding, we do this to support the community.</p><p>If you want to show some love, please take a moment to follow me on <a href="https://linkedin.com/in/sunilsandhu">LinkedIn</a>, <a href="https://tiktok.com/@messyfounder">TikTok</a>, <a href="https://instagram.com/sunilsandhu">Instagram</a>. You can also subscribe to our <a href="https://newsletter.plainenglish.io/">weekly newsletter</a>. And before you go, don’t forget to clap and follow the writer️!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d3de12a5901" width="1" height="1" alt=""><hr><p><a href="https://ai.plainenglish.io/scaling-ai-knowledge-systems-lessons-from-the-dhtmlx-mcp-server-6d3de12a5901">Scaling AI Knowledge Systems: Lessons from the DHTMLX MCP Server</a> was originally published in <a href="https://ai.plainenglish.io">Artificial Intelligence 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[Simplifying State Management in DHTMLX React Gantt and Scheduler-Powered Apps with Zustand]]></title>
            <link>https://dhtmlx.medium.com/simplifying-state-management-in-dhtmlx-react-gantt-and-scheduler-apps-with-zustand-afea3e329437?source=rss-e9c0a531d5e5------2</link>
            <guid isPermaLink="false">https://medium.com/p/afea3e329437</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[gantt-chart]]></category>
            <category><![CDATA[state-management]]></category>
            <dc:creator><![CDATA[JavaScript UI Libraries — DHTMLX]]></dc:creator>
            <pubDate>Fri, 27 Feb 2026 08:48:38 GMT</pubDate>
            <atom:updated>2026-02-27T08:55:41.162Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nJLisspFFeonfwWKORG1sA.png" /></figure><p>Not long ago, we explored how state management affects complex UI components like DHTMLX React Gantt and how <a href="https://dhtmlx.com/blog/using-dhtmlx-gantt-chart-for-react-with-redux-toolkit-principles-benefits-and-implementation-tips/">integrating Redux Toolkit</a> can help bring structure to growing React applications. That approach works well, especially when you need strict control over state transitions. But in practice, not every project needs that level of ceremony.</p><p>State management in modern front-end apps rarely follows a single pattern. Some teams value predictability and explicit flows. Others prefer something lighter that doesn’t add extra boilerplate. Redux Toolkit remains a solid choice for feature-rich applications, but we often see cases where its setup feels heavier than necessary, especially in projects where speed and simplicity matter just as much as scalability.</p><p>So we decided to continue our series on state management strategies for apps built with <a href="https://dhtmlx.com/docs/products/dhtmlxGantt-for-React/">DHTMLX React Gantt</a> and <a href="https://dhtmlx.com/docs/products/dhtmlxScheduler-for-React/">React Scheduler</a>.</p><p>This time, the focus is on Zustand, a minimalistic yet surprisingly capable state management library. We’ll look at how it fits into real React workflows, why many developers reach for it instead of larger state solutions, and what actually happens when you connect a Zustand store to a Gantt chart or scheduling calendar in a working application.</p><h3>Why Zustand Caught So Much Attention</h3><p>Zustand is a lightweight state management library built with React in mind. Since its first stable release back in 2019, it has steadily built a strong following, mostly because it stays out of your way. The focus is simple: minimal API surface, solid performance, and a developer experience that doesn’t feel like overhead.</p><p>The adoption numbers reflect that momentum. At the time of writing, Zustand is approaching 21 million weekly downloads on npm, and it recently ranked at the top among state management libraries in the latest edition of the JavaScript Rising Stars report.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/0*w6RtFzCen7N3KwDF.png" /><figcaption><em>Source: </em><a href="https://risingstars.js.org/2025/en#section-statemanagement"><em>JavaScript Rising Stars 2025</em></a></figcaption></figure><p>So what’s behind that growth?</p><p>In practice, teams are drawn to its flexibility. Zustand uses a hook-based API that feels natural inside React components. There’s no heavy architecture imposed on you, no rigid folder structure to follow, and very little boilerplate. You define a store, consume it where needed, and move on. State updates remain predictable thanks to immutable patterns, but without the ceremony we often associate with larger Flux-inspired solutions.</p><p>Another detail that developers appreciate: Zustand avoids a few common React pitfalls. Issues like the “zombie child” problem, React concurrency edge cases, or context loss between mixed renderers are largely handled under the hood. You don’t spend time fighting the state layer; it just works.</p><p>And it’s not strictly tied to React either. Zustand can be used with vanilla JavaScript and even in Node.js environments. Unlike Redux, which is deeply rooted in React-oriented patterns, Zustand gives you more freedom to manage state beyond a single UI framework.</p><p>All of that makes it an interesting alternative to Redux Toolkit, especially when you want something leaner without sacrificing control. So how does that difference actually play out in a real project with DHTMLX React Gantt or Scheduler? Let’s take a closer look.</p><h3>Zustand vs Redux Toolkit: Where the Difference Shows</h3><p>Zustand and Redux Toolkit appeared in the React ecosystem around the same period. Redux Toolkit gained traction quickly, mostly because it became the officially recommended way to write Redux logic. For teams already invested in Redux, switching to Redux Toolkit felt natural — almost automatic.</p><p>But things have been shifting.</p><p>According to the latest State of React 2025 survey, Zustand is gaining ground fast. In fact, respondents rated it higher than Redux Toolkit across categories like Interest, Positivity, and Satisfaction. That says a lot about where developer sentiment is moving.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hvjZqGdH-shXDNEdR8DPLg.gif" /><figcaption><em>Source: </em><a href="https://2025.stateofreact.com/en-US/libraries/state-management/"><em>State of React 2025</em></a></figcaption></figure><p>In practice, the reason isn’t hard to see. When you’re building feature-heavy interfaces, like scheduling systems or project planning apps with Gantt charts, state logic can grow quickly. Many teams don’t necessarily want more structure at that point. They want clarity without ceremony. Zustand tends to hit that balance.</p><p>One notable difference is architectural: Zustand doesn’t require wrapping your entire app in a context provider. You define a store, consume it with hooks, and keep going. For some projects, that small shift already simplifies the mental model.</p><p>Zustand is not a universal replacement for Redux Toolkit. If you’re dealing with strict middleware chains, complex async workflows, or deeply interconnected global state, Redux Toolkit remains a strong fit.</p><p>But for many React scheduling tools and project planning systems, especially those built with DHTMLX React Gantt or React Scheduler, Zustand provides enough control over edits and updates without adding structural weight. Teams usually notice that the store stays easy to reason about even as the UI becomes more interactive.</p><p>With that in mind, let’s look at how this plays out when integrating Zustand with DHTMLX React components.</p><p>Both DHTMLX React Gantt and React Scheduler follow a similar integration pattern. To keep things concrete, we’ll focus on DHTMLX React Gantt as an example.</p><p>If you’d like to try it yourself, you can install the <a href="https://www.npmjs.com/package/@dhtmlx/trial-react-gantt">professional evaluation version</a> directly from npm and experiment in a real project setup.</p><h3>Key Aspects of Integrating DHTMLX React Gantt with Zustand</h3><p>At this point, it’s fair to ask: how do all those advantages of Zustand actually translate into a real React Gantt project?</p><p>Instead of speaking in abstractions, let’s look at the practical side. The goal here is to build a state layer around DHTMLX React Gantt where every update, whether it’s editing a task, changing zoom, or creating a dependency, flows through a centralized Zustand store.</p><h4>Defining Store Responsibilities</h4><p>The store plays a bigger role than just holding Gantt data. It also defines how that data changes.</p><p>Here’s the TypeScript structure used in the example:</p><pre>type Snapshot = { tasks: SerializedTask[]; links: Link[]; config: GanttConfig };<br>type State = {<br>  tasks: SerializedTask[];<br>  links: Link[];<br>  config: GanttConfig;<br>  past: Snapshot[];<br>  future: Snapshot[];<br>  maxHistory: number;<br>  recordHistory: () =&gt; void;<br>  undo: () =&gt; void;<br>  redo: () =&gt; void;<br><br>  setZoom: (level: ZoomLevel) =&gt; void;<br>  addTask: (task: SerializedTask) =&gt; SerializedTask;<br>  upsertTask: (task: SerializedTask) =&gt; void;<br>  deleteTask: (id: string | number) =&gt; void;<br>  addLink: (l: Link) =&gt; Link;<br>  upsertLink: (l: Link) =&gt; void;<br>  deleteLink: (id: string | number) =&gt; void;<br>};</pre><p>What stands out here is that the store combines data, history management, and mutation logic in one place. Tasks, links, configuration, undo/redo — everything lives together. In practice, this makes the store the single source of truth for the entire chart.</p><h4>Creating the Store</h4><p>With the structure defined, we can create the Zustand store:</p><pre>export const useGanttStore = create&lt;State&gt;((set, get) =&gt; ({<br>  tasks: seedTasks,<br>  links: seedLinks,<br>  config: { zoom: defaultZoomLevels },<br><br>  past: [],<br>  future: [],<br>  maxHistory: 50,<br>... // actions will go here</pre><p>At this stage, we have an initial state: tasks, links, config, and empty history arrays. The interesting part is how actions modify that state.</p><p>Take Zoom changes as an example:</p><pre>setZoom: (level) =&gt; {<br>  get().recordHistory();<br>  set({<br>    config: { ...get().config, zoom: { ...get().config.zoom, current: level } },<br>  });<br>},</pre><p>Before updating anything, the store records the current snapshot. Then it creates a new configuration object with the updated zoom level. No reducers. No dispatch. Just direct, explicit state transitions.</p><p>Updating a task follows the same pattern:</p><pre>upsertTask: (task) =&gt; {<br>  get().recordHistory();<br>  const tasks = get().tasks;<br>  const index = tasks.findIndex((x) =&gt; String(x.id) === String(task.id));<br>  if (index !== -1) {<br>    set({<br>      tasks: [...tasks.slice(0, index), { ...tasks[index], ...task }, ...tasks.slice(index + 1)],<br>    });<br>  }<br>},</pre><p>The logic is straightforward: find the task, merge changes, update state. Unlike Redux Toolkit, there’s no separate reducer layer. Data and mutation logic live inside the same store definition. For many teams, that reduces mental overhead.</p><p>The same principle applies to links, configuration updates, and undo/redo history. Everything is handled through regular store actions.</p><p>Which leads to the next practical question: how do user interactions inside the Gantt chart trigger these actions?</p><h4>Turning Gantt Events into Store Actions</h4><p>This is where the <strong>data.save</strong> callback comes in. It acts as a bridge between DHTMLX React Gantt and the Zustand store.</p><p>Whenever a user edits a task or link, Gantt triggers <strong>data.save</strong>. That callback determines what kind of operation occurred and routes it to the appropriate store action.</p><pre>const data: ReactGanttProps[&#39;data&#39;] = useMemo(  <br>  () =&gt; ({  <br>    save: (entity, action, item, id) =&gt; {  <br>      if (entity === &#39;task&#39;) {  <br>        const task = item as SerializedTask;  <br>        if (action === &#39;create&#39;) return addTask(task);  <br>        else if (action === &#39;update&#39;) upsertTask(task);  <br>        else if (action === &#39;delete&#39;) deleteTask(id);  <br>      } else if (entity === &#39;link&#39;) {  <br>        const link = item as Link;  <br>        if (action === &#39;create&#39;) return addLink(link);  <br>        else if (action === &#39;update&#39;) upsertLink(link);  <br>        else if (action === &#39;delete&#39;) deleteLink(id);  <br>      }  <br>    },  <br>  }),  <br>  [addTask, addLink, upsertTask, upsertLink, deleteTask, deleteLink]  <br>);</pre><p>In practice, the flow looks like this:</p><ul><li>A user edits a task or dependency in the Gantt UI</li><li>Gantt calls <strong>data.save(…)</strong></li><li>The action type is identified</li><li>The corresponding Zustand action runs</li><li>The store updates</li><li>The chart re-renders with the new state</li></ul><p>All mutations happen inside the store. The Gantt component simply reflects the updated data. Because every change goes through explicit store actions, debugging and change tracking become more predictable.</p><p>If you want to explore this mechanism in more detail, the “<a href="https://docs.dhtmlx.com/gantt/integrations/react/state/state-management-basics/">Handling changes with data.save</a>” section in the official guide walks through additional examples.</p><h4>Keeping Gantt as a Visual Layer</h4><p>One deliberate design choice in this approach is the separation of concerns. Once Zustand handles state management, the Gantt component itself becomes mostly a rendering layer.</p><p>Here’s how the store is consumed:</p><pre>const { tasks, links, config, setZoom, addTask, upsertTask, deleteTask, addLink, upsertLink, deleteLink, undo, redo } = useGanttStore();</pre><p>And rendering becomes straightforward:</p><pre>&lt;ReactGantt ref={ganttRef} tasks={tasks} links={links} config={config} templates={templates} data={data} /&gt;</pre><p>The component reads the state and passes events back to the store. That’s it. No duplicated logic. No hidden mutations inside the UI layer.</p><p>If you prefer a full walkthrough, the official documentation includes a <a href="https://docs.dhtmlx.com/gantt/integrations/react/state/zustand/">step-by-step tutorial</a> showing how to connect DHTMLX React Gantt with Zustand in a single application. It also demonstrates how to build a custom toolbar for zoom controls and undo/redo actions outside the chart UI, all wired into the same store. There’s even a <a href="https://github.com/dhtmlx/react-gantt-zustand-starter">complete working example</a> available on GitHub for those who want to experiment in a real project setup.</p><h3>Wrapping Up</h3><p>When developing a React application that includes complex UI components such as a Gantt chart or Scheduler, state management quickly becomes a central architectural concern. The combination of React, Zustand, and DHTMLX React Gantt demonstrates that powerful functionality does not necessarily require heavyweight solutions.</p><p>Zustand offers a clean, minimalistic approach to handling tasks, links, configuration settings, and even undo/redo history — all within a single, predictable store. The result is a setup where data flows are transparent, debugging is simpler, and the Gantt component remains focused purely on rendering.</p><p>Is Zustand a solid choice for enterprise-grade React applications? In many cases, absolutely. Still, architecture decisions should always align with project requirements. In upcoming articles, we will evaluate other state management approaches for DHTMLX React components to help you make an informed decision.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=afea3e329437" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DHTMLX MCP Server: Making AI Coding More Accurate]]></title>
            <link>https://dhtmlx.medium.com/dhtmlx-mcp-server-making-ai-coding-more-accurate-df7c4536b679?source=rss-e9c0a531d5e5------2</link>
            <guid isPermaLink="false">https://medium.com/p/df7c4536b679</guid>
            <category><![CDATA[mcp-server]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-assisted-coding]]></category>
            <dc:creator><![CDATA[JavaScript UI Libraries — DHTMLX]]></dc:creator>
            <pubDate>Fri, 20 Feb 2026 09:17:30 GMT</pubDate>
            <atom:updated>2026-02-21T06:29:09.480Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x5YPEhf0tC3fuiKXm-J2jw.png" /></figure><p>When a powerful technology arrives, you either move with it or get left behind. Lately, that idea feels more like a day-to-day reality, especially in web development.</p><p>AI tools are showing up everywhere, and ignoring them isn’t really an option anymore. In practice, teams are already adjusting: businesses expect AI-driven features as part of modern products, developers rely on assistants to speed up routine work, and toolmakers are rethinking how their products fit into this new workflow.</p><p>We’ve been going through that same shift. And today, we’re introducing something that came out of it: the <a href="https://dhtmlx.com/docs/products/dhtmlx-mcp-server/">DHTMLX MCP Server</a>. It’s a new addition aimed at making work with DHTMLX documentation noticeably more reliable and efficient when AI is part of your development process.</p><h3>Why MCP Is Becoming Part of the AI Dev Stack</h3><p>These days, tools like Claude Code, Cursor, Gemini, and OpenAI Codex have quietly become part of the everyday dev toolkit. We often see teams relying on them for routine coding, quick debugging, or just navigating documentation faster. But there’s a catch that shows up pretty quickly in practice.</p><p>Most AI assistants are powered by LLMs, and those models don’t continuously learn from new data. They’re trained once and then frozen at a certain point in time, the well-known “knowledge cutoff”. As a result, even strong assistants can fall behind when you’re working with evolving libraries or recently updated APIs. This is exactly the gap that MCP is designed to close.</p><p>At its core, the Model Context Protocol is an open standard that lets AI models connect to external systems and pull in fresh, real-time data. Instead of relying only on what the model “remembers,” it can now access what’s actually current.</p><p>Since its release in November 2024 by Anthropic, MCP has gained traction surprisingly fast. A few signals stand out:</p><ul><li>The ecosystem has grown to more than 10,000 public MCP servers, covering everything from dev tooling to large-scale enterprise use in Fortune 500 environments.</li><li>Major cloud platforms — including Amazon Web Services, Cloudflare, Google Cloud, and Microsoft Azure — are already supporting it at the infrastructure level.</li><li>Official SDKs are available across all major programming languages, with over 97 million monthly downloads.</li></ul><p>Given that momentum, it’s not surprising MCP is quickly becoming one of the defining <a href="https://dhtmlx.com/blog/how-ai-is-reshaping-web-development-in-2026-javascript-frameworks-open-source-and-pm-tools/">patterns for AI development heading into 2026</a>.</p><p>For us, the reasoning was pretty straightforward. If AI tools work better with accurate, up-to-date context, then giving them direct access to DHTMLX documentation is the most reliable way to improve results. That’s what the DHTMLX MCP Server is built for.</p><p>In practice, it means your AI assistant can reference the latest DHTMLX APIs and behavior instead of guessing based on outdated training data.</p><p>So what does that actually change when you’re building with DHTMLX JavaScript components? Let’s take a closer look.</p><h3>How the MCP Server Improves Everyday DHTMLX Workflows</h3><p>If you’ve tried using AI assistants with UI libraries like DHTMLX, you’ve probably seen the rough edges. In practice, it often shows up as slightly off code: outdated APIs, missing config options, or examples that don’t quite match how the library works today.</p><p>These issues are usually tied to what people call AI hallucinations. More often than not, they come from version gaps, when the model simply doesn’t know about recent updates or changes in the library.</p><p>The DHTMLX MCP Server is built to reduce that friction. Instead of relying on stale training data, your AI assistant can work with the latest documentation and produce answers that are much closer to what you’d expect in a real project.</p><p>It integrates with tools many teams are already using, including Claude Code, Cursor, Gemini CLI, and Antigravity. Once connected, a few things noticeably improve:</p><ul><li>responses stay aligned with the latest DHTMLX documentation</li><li>data retrieval is driven by a high-precision embedding model</li><li>generated code snippets reflect current APIs</li><li>suggestions follow established DHTMLX patterns and best practices</li><li>configuration options and customization details are surfaced more consistently</li></ul><p>Another practical detail: the MCP server isn’t limited to a single library. It covers documentation across the entire <a href="https://dhtmlx.com/docs/products/">DHTMLX JavaScript product line</a>. Whether you’re building a project management tool with DHTMLX Gantt or DHTMLX Scheduler, working with diagrams via DHTMLX Diagram, or assembling dashboards with DHTMLX Suite, the assistant can pull in the right context when you need it.</p><p>Security is another area teams usually ask about. The MCP server is a hosted service and doesn’t require access to your local files. It also doesn’t collect personal user data, which makes it easier to adopt in environments with stricter requirements.</p><p>If you want to try it out, the <a href="https://docs.dhtmlx.com/suite/guides/ai/">official starter guide</a> walks through the setup process and shows how to connect the MCP server to your AI assistant. It’s a straightforward way to see how much more reliable AI-assisted development can feel when the underlying context is actually up to date.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df7c4536b679" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building High-Performance Project Management Apps with DHTMLX React Gantt and Next.js]]></title>
            <link>https://dhtmlx.medium.com/building-high-performance-project-management-apps-with-dhtmlx-react-gantt-and-next-js-d84de6364627?source=rss-e9c0a531d5e5------2</link>
            <guid isPermaLink="false">https://medium.com/p/d84de6364627</guid>
            <category><![CDATA[project-management]]></category>
            <category><![CDATA[web-app-development]]></category>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[gantt-chart]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[JavaScript UI Libraries — DHTMLX]]></dc:creator>
            <pubDate>Mon, 26 Jan 2026 13:28:07 GMT</pubDate>
            <atom:updated>2026-01-26T13:28:07.638Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2C3ZE9OTRe1BgS7k7Lt_-g.png" /></figure><p>Developing web-based project management applications in React can feel deceptively simple until your app needs to handle thousands of tasks, complex dependencies, and live scheduling updates. Developers quickly run into performance bottlenecks: slow initial page loads, complicated state management, and difficulty scaling components efficiently.</p><p>This is where combining Next.js and <a href="https://dhtmlx.com/docs/products/dhtmlxGantt-for-React/">DHTMLX Gantt for React</a> becomes a game-changer. Together, they let teams build responsive, data-intensive project planning tools without reinventing the wheel.</p><p>In this guide, we’ll walk through why Next.js is ideal for React projects, how DHTMLX Gantt leverages its strengths, and practical steps to integrate them into a scalable, production-ready application.</p><h4>Why React Alone Isn’t Enough for Complex Project Tools</h4><p>React excels at building interactive UIs, but as soon as a Gantt chart needs to display thousands of interdependent tasks, the framework alone doesn’t address core challenges:</p><ul><li>Rendering delays when data sets are large</li><li>Client-side performance bottlenecks</li><li>SEO limitations in fully dynamic pages</li><li>Complex routing and server interactions</li></ul><p>Teams often patch these issues with custom tooling, a time-consuming approach that increases maintenance costs. The solution? Next.js, which provides built-in optimizations for these exact pain points.</p><h4>Next.js: Powerful Performance Layer for React</h4><p>Rather than simply explaining features, let’s look at a real-world scenario: imagine your Gantt chart displays 5,000 tasks with dependencies and resource assignments. Without server-side assistance, the initial page load can take seconds, frustrating users.</p><p>Next.js solves this by enabling:</p><ul><li>Server-side rendering (SSR) for pages that need immediate content</li><li>Static site generation (SSG) for task templates or dashboards that rarely change</li><li>Hybrid rendering to mix static and dynamic pages efficiently</li></ul><p>Additional tools — automatic code splitting, image optimization, data prefetching, and caching mechanisms — reduce runtime overhead. Built-in routing and modern dev tooling like Turbopack streamline development, letting teams focus on product logic rather than boilerplate performance hacks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*t4PlCKjh7OyLY_L7z8S94Q.png" /><figcaption><a href="https://survey.stackoverflow.co/2025/technology#most-popular-technologies-webframe-prof"><em>2025 Stack Overflow Developer Survey</em></a></figcaption></figure><p>Over time, Next.js has shifted from an optional enhancement to the default architecture choice for React teams building enterprise applications. Industry surveys, including Capterra’s latest Developer Survey, confirm its widespread adoption alongside React.</p><h3>Why DHTMLX Gantt Shines in This Environment</h3><p>While Next.js handles architecture and performance, DHTMLX Gantt for React tackles the complexity of project scheduling itself. Its strengths include:</p><ul><li>Smart rendering for thousands of tasks</li><li>Dynamic loading to keep the interface responsive</li><li>Advanced scheduling features: auto-scheduling, resource assignments, critical path calculation, task grouping and splitting</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BypQ7HH8K-hKZUkFPjifHQ.png" /><figcaption><a href="https://dhtmlx.com/react/demos/gantt/#/resource-panel"><em>React Gantt chart with resource histogram</em></a></figcaption></figure><p>In practice, this allows project managers to monitor large initiatives efficiently. <a href="https://dhtmlx.com/blog/using-dhtmlx-gantt-chart-for-react-with-redux-toolkit-principles-benefits-and-implementation-tips/">Combined with Redux Toolkit for state management</a>, it solves the typical performance and complexity challenges of client-side Gantt components.</p><p>Importantly, DHTMLX React Gantt integrates seamlessly with Next.js, so you don’t need hacks or workarounds, everything works in a standard React + Next.js setup.</p><h3>Step-by-Step Integration with Next.js</h3><p>Getting started with DHTMLX React Gantt in a Next.js project is straightforward, even for developers with basic React experience:</p><ol><li>Install Node.js if not already installed</li><li>Create a new Next.js project using <strong>npx create-next-app@latest</strong></li><li>Install the DHTMLX React Gantt package (<a href="https://docs.dhtmlx.com/gantt/integrations/react/installation/">guide</a>)</li><li>Prepare demo data for tasks and links</li><li>Create a Gantt component and embed it in a page</li><li>Run your app to confirm functionality</li></ol><p><strong>Pro tip:</strong> Because Gantt relies on refs, hooks, and callbacks, it must be rendered inside a Client Component. Next.js defaults to Server Components, which lack access to browser APIs. The <a href="https://docs.dhtmlx.com/gantt/integrations/react/nextjs/">official DHTMLX Gantt tutorial explains</a> this in detail with examples.</p><p>For convenience, a <a href="https://github.com/dhtmlx/react-gantt-nextjs-starter">starter app on GitHub</a> demonstrates a fully working Next.js + DHTMLX React Gantt integration.</p><h3>Real-World Benefits</h3><p>By combining Next.js and DHTMLX Gantt, teams can:</p><ul><li>Deliver highly interactive, responsive dashboards</li><li>Handle large-scale scheduling data without slowing down the app</li><li>Build a scalable architecture that grows with project complexity</li><li>Move quickly from prototype to production, thanks to predictable performance</li></ul><p>This pairing allows developers to focus on user experience and business logic, instead of fighting framework limitations.</p><h3>Conclusion</h3><p>Creating modern, enterprise-grade project management apps requires predictable architecture, rich UI components, and strong performance. React alone is not enough to manage the demands of data-heavy Gantt charts and complex workflows.</p><p>Next.js provides the architectural backbone, while DHTMLX React Gantt delivers the scheduling and visualization features necessary for professional project management tools. Together, they enable teams to build scalable, high-performance applications that work well for both developers and end users.</p><p>Following the official integration guide, teams can quickly move from small prototypes to production-ready project management solutions that handle real-world complexities with confidence.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d84de6364627" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>