Interview practice question
Integrating a non-React library like a chart or map
Frontend Engineering · React · Intermediate
You need to use a vanilla JavaScript map library inside a React component. How would you integrate it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Ref to container element.
- Initialise in effect, destroy in cleanup.
- Sync props to library via effects.
- Avoid React managing library's DOM.
- Wrap in reusable component/hook.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.