Add a playground for dynamic trees in r3f

This commit is contained in:
Aria Minaei 2022-10-18 10:19:20 +02:00 committed by Aria
parent a9c3c00153
commit ef5752cbd3
3 changed files with 100 additions and 8 deletions

View file

@ -1,11 +1,5 @@
import {
ComponentProps,
ComponentType,
Ref,
RefAttributes,
useMemo,
useState,
} from 'react'
import type {ComponentProps, ComponentType, Ref, RefAttributes} from 'react'
import {useMemo, useState} from 'react'
import React, {forwardRef, useEffect, useLayoutEffect, useRef} from 'react'
import {allRegisteredObjects, editorStore} from './store'
import mergeRefs from 'react-merge-refs'