React is a JavaScript library for building user interfaces from composable components. It supports single-page applications, where one loaded HTML file updates dynamically, and works with D3 in interactive visualization projects. section 8.0
A practical D3 integration keeps responsibilities clear:
- Let React render the component structure, then pass data and shared scales through props. section 8.0 section 8.5.1
- Create a ref with useRef(), attach it to the element D3 should control, and select its current DOM node. section 8.5.1
- Run D3 operations inside useEffect(), where the referenced element is up to date. section 8.5.1
Interactive framework dashboard
A React application combines a scatterplot of framework retention versus users with a bar chart of framework awareness. The scatterplot receives experience data and a D3 ordinal color scale as props, while D3 builds axes and marks inside the referenced group. section 8.0




