Access a community of over 900,000 Shopify Merchants and Partners and engage in meaningful conversations with your peers.
Hello!
I am building a Shopify App using the React and Polaris.
And I cannot figure out how should I add Loading Polaris Component to my app.
I have this in my _app.js file
class MyApp extends App {
...
const { Component, pageProps } = this.props
...
<AppProvider shopOrigin={this.state.shopOrigin} apiKey = { API_KEY } forceRedirect > <Component {...pageProps} /> </AppProvider>
...
And when I try to add Loading component to AppProvider then it says that AppProvider takes only one Children.
So How can I add Loading component to
<Component {...pageProps} />
Btw I am following official Shopify app tutorial on making app using react and node.
Solved! Go to the solution
This is an accepted solution.
Okay so... I figured this out... No Problem...
This is an accepted solution.
Okay so... I figured this out... No Problem...