Skip to content

Export Library and react in different ways #170

Description

@mehardiknaik

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions