Export Library and react in different ways
my suggestion is to
export core function and core modules as
import { init, SpatialNavigation } from '@noriginmedia/norigin-spatial-navigation';
and for react
import { useFocusable, FocusContext } from '@noriginmedia/norigin-spatial-navigation/react';
add /react for react so if any one want to use this on other framerwork like vue or svelt then they use core modules
from @noriginmedia/norigin-spatial-navigation and if someone want to use this with react then they go with
@noriginmedia/norigin-spatial-navigation/react
and this way in future we can add @noriginmedia/norigin-spatial-navigation/vue or @noriginmedia/norigin-spatial-navigation/svelt like this
Hello @mehardiknaik, thanks for getting in touch.
This is a good suggestion and something we already have in the works.
We can keep this issue open until we've had a chance to update the library with the relevant changes.
Thanks!
Hi @predikament thanks for the response You can refer https://www.npmjs.com/package/web-scrolling-text?activeTab=readme
This package where core and react are exported separately
Hi @predikament thanks for the response You can refer https://www.npmjs.com/package/web-scrolling-text?activeTab=readme
This package where core and react are exported separately
We already do this for some of our other libraries, so we already have an idea for the approach, but thanks nevertheless!
I'll do my best to post some updates here, once we've made some progress, but it might take a little while due to other higher priorities, so hopefully with some patience we'll get there.
Cheers
Hi @predikament thanks for the response You can refer https://www.npmjs.com/package/web-scrolling-text?activeTab=readme This package where core and react are exported separately
We already do this for some of our other libraries, so we already have an idea for the approach, but thanks nevertheless!
I'll do my best to post some updates here, once we've made some progress, but it might take a little while due to other higher priorities, so hopefully with some patience we'll get there.
Cheers
Yes sure and if you need any help regarding that i will definitely help you thanks