import { Rating } from "components"; In new Shopify Review demo App

Solved

import { Rating } from "components"; In new Shopify Review demo App

mohamed001
Shopify Partner
8 1 1

Hi everyone,

I was trying to go over the code of the shopify Review Demo App that explains the new Approach of developing app from now on but I came across these two imports 

 => import { Rating } from "components" 

 => import { useProducts } from "hooks";

 

From hooks and components.  are these libraries that we have to include in our project or its something that comes from shopify app-bridge? I couldn't exactly understand where these are coming from and any help is really appreciated.

 

Thanks

 

 

 

Accepted Solution (1)

mohamed001
Shopify Partner
8 1 1

This is an accepted solution.

In case someone is having the same problem; there are folders in the root name components and hooks and you will need to add the ../  infront to go to the right path as shown below.

 

import { Rating } from "../components" 

View solution in original post

Reply 1 (1)

mohamed001
Shopify Partner
8 1 1

This is an accepted solution.

In case someone is having the same problem; there are folders in the root name components and hooks and you will need to add the ../  infront to go to the right path as shown below.

 

import { Rating } from "../components"