[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-detail-655707-en":59,"doc-seo-655707-105":99,"doc-similar-655707":162},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":5,"data":60},{"doc_id":61,"user_id":62,"nickname":63,"user_avatar":64,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":66,"doc_content":67,"file_id":68,"file_url":69,"file_type":70,"file_size":71,"view_count":24,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":72,"language":73,"language_code":74,"site_id":75,"html_lang":74,"table_of_contents":76,"faqs":77,"seo_title":78,"seo_description":66,"update_tm":79,"read_time":80,"preview_page_count":19,"preview_urls":81},655707,962090896061,"AfterMidnight","https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc","HookLens: Visual Analytics for Understanding React Hooks Structures - Abstract","Maintaining and refactoring React web applications is challenging because Hooks often cause complex dependencies among components, leading to anti-patterns that make behavior harder to predict and code harder to maintain. HOOKLENS is an interactive visual analytics system designed to help developers understand how Hooks define dependencies and data flows. Based on iterative design with experienced React developers, it supports efficient exploration of component structures, dependency relationships, and anti-pattern identification, validated by user studies and comparisons against conventional editors and LLM-based assistants.","arXiv :2602 . 17891v2 [ cs .HC] 23 Mar 2026  \nHookLens: Visual Analytics for Understanding React Hooks Structures  \nSuyeon Hwang* 1,2 Seokhyeon Park† 1  \nMinkyu Kweon† 1 Jeongmin Rhee† 1 Seokweon Jung† 1 Hyeon Jeon† 1  \nSoohyun Lee† 1 Jinwook Seo‡ 1  \n1 Seoul National University 2 Samsung Electronics  \nFigure 1: The overview of HOOKLENS. The nested directed node-link diagram visualizes the structure of a React application. Nodes represent Components, Props, and Hooks—key elements for understanding React—and edges indicate their relationships. Nodes for Props and Hooks are nested within Component nodes and are initially hidden. Users can click a Component node to reveal its internal Props, Hooks and their relationships, and then examine these details (A) . Users can also click a Prop or Hook node to highlight its relevant nodes and edges (B) . Potentially problematic Components, Props, Hooks, and relationships are highlighted with red outlines and edges (C) . Moreover, users can view the associated source code in the code viewer (D) .  \nABSTRACT  \nMaintaining and refactoring React web applications is challenging, as React code often becomes complex due to its core API called Hooks. For example, Hooks often lead developers to create complex dependencies among components, making code behavior unpredictable and reducing maintainability, i.e., anti-patterns. To address this challenge, we present HOOKLENS, an interactive visual analytics system that helps developers understand how Hooks define dependencies and data flows between components. Informed by an iterative design process with experienced React developers, HOOKLENS supports users to efficiently understand the structure and dependencies between components and to identify anti-patterns. A quantitative user study with 12 React developers demonstrates that HOOKLENS significantly improves participants’accuracy in detecting anti-patterns compared to conventional code editors. Moreover, a comparative study with state-of-the-art LLMbased coding assistants confirms that these improvements even surpass the capabilities of such coding assistants on the same task.  \nIndex Terms: Visual analytics, Software visualization, Code analysis, Dependency graph visualization, React, Anti-pattern detection.  \n* e-mail: [stom.hwang@](stom.hwang@{hcil.snu.ac.kr)[{](stom.hwang@{hcil.snu.ac.kr)[hcil.snu.ac.kr](stom.hwang@{hcil.snu.ac.kr), [samsung.com](samsung.com})[}](samsung.com})  \n†e-mail: {mk, jmrhee, shlee, shpark, swjung, [hj](hj}@hcil.snu.ac.kr)[}](hj}@hcil.snu.ac.kr)[@hcil.snu.ac.kr](hj}@hcil.snu.ac.kr)[ ](hj}@hcil.snu.ac.kr)‡e-mail: [jseo@snu.ac.kr](jseo@snu.ac.kr), corresponding author  \n1 INTRODUCTION  \nReact 1 is widely used in modern web development, but maintaining and refactoring React applications remains challenging. Unlike conventional web development, where the code that defines the structure, functionality, and design of user interface (UI) components is scattered across multiple files, React enables developers to implement these components as self-contained functions. By doing so, React helps developers build applications more intuitively and efficiently. Furthermore, Hooks, the core API of React, extend the functionality of each component, enabling the development of more dynamic and interactive applications. However, Hooks often introduce complex dependencies among components, creating anti-patterns that make code unpredictable, difficult to understand, and challenging to maintain [14, 12] . For example, when Hooks are used across hierarchically nested components, developers frequently pass data through intermediate components that do not directly use it; this anti-pattern forces them to review multiple components when modifying a single one.  \nTo address this challenge, we propose HOOKLENS, an interactive visual analytics system that supports developers in understanding the structure and dependencies of React code from the perspective of Hooks. We first conduct preliminary int","cbCaiaVukjALb1cO","https://ap.wps.com/l/cbCaiaVukjALb1cO","pdf",8291953,11,"English","en",105,"# Abstract\n# 1 Introduction","[{\"question\":\"What problem does HOOKLENS address in React development?\",\"answer\":\"React apps become difficult to maintain when Hooks create complex dependencies among components, resulting in anti-patterns and unpredictable behavior. HOOKLENS helps developers understand dependencies and locate these anti-patterns.\"},{\"question\":\"How does HOOKLENS help users explore React code structure?\",\"answer\":\"HOOKLENS uses interactive visual analytics with a nested directed node-link diagram where users reveal component internals (Props and Hooks) on demand. It also supports highlighting related nodes and edges and viewing associated source code.\"},{\"question\":\"How was HOOKLENS evaluated?\",\"answer\":\"A quantitative user study with 12 React developers showed improved accuracy in detecting Hook-related anti-patterns versus conventional code editors. A comparative study with state-of-the-art LLM-based coding assistants confirmed even stronger results on the same task.\"}]","HookLens: Visual Analytics for Understanding React Hooks Structures - Abstract | PDF",1792963388,28,[82,86,90,95],{"page_no":8,"url":83,"width":84,"height":85},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/204c99c5b473c4d706b3bef6e0b95dde.webp",983,1272,{"page_no":14,"url":87,"width":88,"height":89},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/611d73cf247390042ed4e0b0d3dc5436.webp",982,1270,{"page_no":91,"url":92,"width":93,"height":94},3,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/b096d5ac56fa7a5a3b8d25edf2905ae7.webp",981,1269,{"page_no":19,"url":96,"width":97,"height":98},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/9b9d4e978d90280ca80f4f5d63c09307.webp",980,1268,{"code":4,"msg":100,"data":101},"ok",{"site_id":75,"language":74,"slug":102,"title":65,"keywords":103,"description":66,"schema_data":104,"social_meta":157,"head_meta":159,"extra_data":161,"updated_unix":79},"hooklens-visual-analytics-for-understanding-react-hooks-structures-abstract","",{"@graph":105,"@context":156},[106,119,139],{"@type":107,"itemListElement":108},"BreadcrumbList",[109,113,115,117],{"item":110,"name":111,"@type":112,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":114,"name":9,"@type":112,"position":14},"https://docshare.wps.com/document/",{"item":116,"name":40,"@type":112,"position":91},"https://docshare.wps.com/document/research-report/",{"item":118,"name":65,"@type":112,"position":19},"https://docshare.wps.com/document/hooklens-visual-analytics-for-understanding-react-hooks-structures-abstract/655707/",{"url":118,"name":65,"@type":120,"image":121,"author":126,"headline":65,"publisher":128,"fileFormat":131,"inLanguage":74,"description":66,"dateModified":132,"datePublished":133,"encodingFormat":131,"isAccessibleForFree":134,"interactionStatistic":135},"DigitalDocument",{"url":122,"@type":123,"width":124,"height":125},"https://docshare.wps.com/thumbnails/hooklens-visual-analytics-for-understanding-react-hooks-structures-abstract/655707.png","ImageObject",300,407,{"name":63,"@type":127},"Person",{"url":110,"name":129,"@type":130},"DocShare","Organization","application/pdf","2026-11-30","2026-10-25",true,{"@type":136,"interactionType":137,"userInteractionCount":24},"InteractionCounter",{"@type":138},"ViewAction",{"@type":140,"mainEntity":141},"FAQPage",[142,148,152],{"name":143,"@type":144,"acceptedAnswer":145},"What problem does HOOKLENS address in React development?","Question",{"text":146,"@type":147},"React apps become difficult to maintain when Hooks create complex dependencies among components, resulting in anti-patterns and unpredictable behavior. HOOKLENS helps developers understand dependencies and locate these anti-patterns.","Answer",{"name":149,"@type":144,"acceptedAnswer":150},"How does HOOKLENS help users explore React code structure?",{"text":151,"@type":147},"HOOKLENS uses interactive visual analytics with a nested directed node-link diagram where users reveal component internals (Props and Hooks) on demand. It also supports highlighting related nodes and edges and viewing associated source code.",{"name":153,"@type":144,"acceptedAnswer":154},"How was HOOKLENS evaluated?",{"text":155,"@type":147},"A quantitative user study with 12 React developers showed improved accuracy in detecting Hook-related anti-patterns versus conventional code editors. A comparative study with state-of-the-art LLM-based coding assistants confirmed even stronger results on the same task.","https://schema.org",{"og:url":118,"og:type":158,"og:title":65,"og:site_name":129,"og:description":66},"article",{"robots":160,"canonical":118},"index,follow",{"doc_id":61,"site_id":75},{"list":163,"token":103},[164,171,178,184,191,198,205,211,217,223],{"doc_id":165,"doc_title":166,"file_type":70,"home_preview_img_url":167,"slug":168,"view_count":169,"category_name":40,"create_tm":170},85433,"LLM-Driven Collaborative Model for Untangling Commits via Explicit and Implicit Dependency Reasoning","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809312282/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=NffhCQKSdsX2LLpn66hCJg2LGGI%3D","llm-driven-collaborative-model-for-untangling-commits-via-explicit-and-implicit-dependency-reasoning",24,1784203479,{"doc_id":172,"doc_title":173,"file_type":70,"home_preview_img_url":174,"slug":175,"view_count":176,"category_name":40,"create_tm":177},84616,"Skills Are Not Islands Measuring Dependency and Risk in Agent Skill Supply Chains","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809190201/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=6x%2FsDQiSZd7uwufxGoE%2BcT3U3QU%3D","skills-are-not-islands-measuring-dependency-and-risk-in-agent-skill-supply-chains",33,1784197142,{"doc_id":179,"doc_title":180,"file_type":70,"home_preview_img_url":181,"slug":182,"view_count":41,"category_name":40,"create_tm":183},83602,"AGENTFLOW: Building Agent Dependency Graphs for Static Analysis of Agent Programs","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808872304/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=hBDUSdYldwfIfRhp6hg67dJDojw%3D","agentflow-building-agent-dependency-graphs-for-static-analysis-of-agent-programs",1784189155,{"doc_id":185,"doc_title":186,"file_type":70,"home_preview_img_url":187,"slug":188,"view_count":189,"category_name":40,"create_tm":190},393803,"Educators’ Perceptions of Large Language Models as Tutors - Comparing Human and AI Tutors in a Blind Text-only Setting","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229918114909/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=rZl2Icjut21dipH453vgPpkKbhg%3D","educators-perceptions-of-large-language-models-as-tutors-comparing-human-and-ai-tutors-in-a-blind-text-only-setting",14,1790393408,{"doc_id":192,"doc_title":193,"file_type":70,"home_preview_img_url":194,"slug":195,"view_count":196,"category_name":40,"create_tm":197},86220,"From GUI Tests to Conversational Interaction: A New Perspective on App-Specific Voice Assistants","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809390303/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=Jdxw%2FwiX8mJ35fumMUqTak0skDI%3D","from-gui-tests-to-conversational-interaction-a-new-perspective-on-app-specific-voice-assistants",22,1784209575,{"doc_id":199,"doc_title":200,"file_type":70,"home_preview_img_url":201,"slug":202,"view_count":203,"category_name":40,"create_tm":204},118235,"Detecting Refactoring Commits in Machine Learning Python Projects - A Machine Learning-Based Approach","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229834746101/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=GLUKqpiHqkRAw0TfKv%2F4H6Xb98M%3D","detecting-refactoring-commits-in-machine-learning-python-projects-a-machine-learning-based-approach",23,1785682516,{"doc_id":206,"doc_title":207,"file_type":70,"home_preview_img_url":208,"slug":209,"view_count":44,"category_name":40,"create_tm":210},496932,"REFACTORBENCH - Evaluating Stateful Reasoning in Language Agents Through Code","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229930234593/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=eh1eZVc3medEXGxW7s1oEtNWe4Y%3D","refactorbench-evaluating-stateful-reasoning-in-language-agents-through-code",1790944186,{"doc_id":212,"doc_title":213,"file_type":70,"home_preview_img_url":214,"slug":215,"view_count":41,"category_name":40,"create_tm":216},82236,"SherAgent Scaling Attack Investigation in the Wild via LLM-Empowered Iterative Query-Filter Backtracking","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808724266/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=Fw0XIZGwzo%2FrVHBKrjpvnpha4l8%3D","sheragent-scaling-attack-investigation-in-the-wild-via-llm-empowered-iterative-query-filter-backtracking",1784179045,{"doc_id":218,"doc_title":219,"file_type":70,"home_preview_img_url":220,"slug":221,"view_count":169,"category_name":40,"create_tm":222},82736,"LLM-Enhanced Hierarchical Heterogeneous Graph Representation Learning for Malicious Python Package Detection","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808783769/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=cwkksmYRcN4zs%2BfN4SJIIuUfdJA%3D","llm-enhanced-hierarchical-heterogeneous-graph-representation-learning-for-malicious-python-package-detection",1784182586,{"doc_id":224,"doc_title":225,"file_type":70,"home_preview_img_url":226,"slug":227,"view_count":8,"category_name":40,"create_tm":228},759800,"Compromising filesystems with npm dependencies - Bachelor Thesis","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230044222114/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=lyWMhqNK1MMNSgN6CEz3rBGNKS4%3D","compromising-filesystems-with-npm-dependencies-bachelor-thesis",1795895117]