nateplusplus / pushin-docs

Documentation for pushin.js
https://pushinjs.com/
1 stars 0 forks source link

Use ref instead of querySelector #3

Closed nateplusplus closed 1 year ago

nateplusplus commented 1 year ago

On example pages, right now querySelector is used to get the pushin container, but we can use React's useRef hook instead (which is actually described in the pushin.js readme).

nateplusplus commented 1 year ago

This is fixed