#MantineProvider cannot be coded like this?

15 messages · Page 1 of 1 (latest)

west horizon
#

Hi I was making a functional component (<GlobalTheme>) which will return <MantineProvider> wrapping other children components inside to make my code look cleaner. But this doesn't work or hasn't supported yet?

hollow oar
#

What part of it doesn't work?

west horizon
hollow oar
#

Are there any errors?

west horizon
#

there's none

hollow oar
#

plus, do you have any content in RootRouter?

hollow oar
#

Does it work when you render only RootRouter without GlobalTheme?

west horizon
#

it works this way

#

but when i tried to make GlobalTheme it didn't work

hollow oar
#

Oh, you don't return anything from your GlobalTheme.

#

return.

west horizon
#

_Worry_Wow oh

#

aight thanks

hollow oar
#

20 Euro.