You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This makes use of the `children` and `refs` props to allow custom rendering of the sequence viewers. For example, to render the linear viewer above the circular viewer:
298
303
299
304
```jsx
300
305
import { useRef } from"react";
301
-
import { SeqViz, Linear, Circular } from"seqviz";
306
+
import { Circular, Linear, SeqViz } from"seqviz";
302
307
303
308
exportdefault () => {
309
+
constcircular=useRef();
304
310
constlinearRef=useRef();
305
-
constcircularRef=useRef();
306
311
307
312
return (
308
-
<SeqViz
309
-
name="J23100"
310
-
seq="TTGACGGCTAGCTCAGTCCTAGGTACAGTGCTAGC"
311
-
refs={{circular: circularRef, linear: linearRef}}
312
-
>
313
+
<SeqViz name="J23100" seq="TTGACGGCTAGCTCAGTCCTAGGTACAGTGCTAGC" refs={{ circular, linear }}>
0 commit comments