mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
### Why? In preparation for moving all turbopack crates Also makes them easier to work with in general. Closes PACK-3164
21 lines
848 B
JavaScript
21 lines
848 B
JavaScript
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
|
|
import { useEffect } from 'react';
|
|
import { select, selectAll } from 'd3-selection';
|
|
export default function Home() {
|
|
useEffect(function() {
|
|
new MyClass();
|
|
}, []);
|
|
return /*#__PURE__*/ React.createElement("svg", null, /*#__PURE__*/ React.createElement("g", {
|
|
className: "group"
|
|
}, /*#__PURE__*/ React.createElement("path", null), /*#__PURE__*/ React.createElement("path", null)), /*#__PURE__*/ React.createElement("g", {
|
|
className: "group"
|
|
}, /*#__PURE__*/ React.createElement("path", null), /*#__PURE__*/ React.createElement("path", null)));
|
|
}
|
|
var MyClass = function MyClass() {
|
|
"use strict";
|
|
_class_call_check(this, MyClass);
|
|
selectAll('.group').each(function() {
|
|
select(this).selectAll('path');
|
|
});
|
|
};
|