mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-21 21:50:49 +02:00
![]() ToolsDropdown uses a menu library that passes refs to submenu items. Function components can't receive refs by default though, so we get "Function components cannot be given refs" warnings in the console. React.forwardRef() allows them to properly handle ref forwarding by wrapping the component and attaching the ref to the outer div element. |
||
---|---|---|
.. | ||
public | ||
scripts | ||
src | ||
test | ||
babel.config.cjs | ||
check_updates.sh | ||
index.html | ||
jest.config.cjs | ||
nginx.conf | ||
package.json | ||
postcss.config.cjs | ||
tailwind.config.cjs | ||
tsconfig.json | ||
vite.config.ts |