react-tooltip-component
react-tooltip-component copied to clipboard
Problem using react-tooltip-component on the server side
I'm getting this error while using the react-tooltip-component on the server side.
/front/node_modules/react-tooltip-component/lib/Tooltip.js:188
container: document.body,
^
ReferenceError: document is not defined
at /Users/rloubradou/workspace/front/node_modules/react-tooltip-component/lib/Tooltip.js:188:18
Setting container: null fixes the issue, and the component is still functional.
@lbdremy I fixed that in psrebniak/react-tooltip-component. You can use this repository until @minhtranite will accept pull request.