When trying to add useState inside any component under packages/react from the apps/cocm-registry app the following error occurs. This issue is related to issue-197, however that specific case was resolved. This one is to ensure any component under packages/react can leverage react hooks
Steps to setup and run the app:
To setup your local dev:
python scripts/akello.py setup (set your environment variables)
python scripts/akello.py start server
python scripts/akello.py start cocm (in another terminal)
Create a user account
SMS Code verification is 1234
Login and reproduce the bug
Login
Create a registry
Acceptance criteria:
[Required] Update ThemeSwap component to use state: TemeSwap Component. You can use this reference to build the component: example. The component should be added to the following section in CoCM Registry: Test Section
[Required] A developer should be able to add react hooks (e.g., useState, useEffect, etc.) to components under packages/react and be imported into apps/cocm-registry to be used
Discord
Feel free to join the discord server there if you would like to discuss this issue: https://discord.gg/WSqNrWBKKw. A thread has been created #development --> GH - #200
When trying to add useState inside any component under
packages/react
from theapps/cocm-registry
app the following error occurs. This issue is related to issue-197, however that specific case was resolved. This one is to ensure any component underpackages/react
can leverage react hooksSteps to setup and run the app:
To setup your local dev:
Create a user account
1234
Login and reproduce the bug
Acceptance criteria:
Discord
Feel free to join the discord server there if you would like to discuss this issue: https://discord.gg/WSqNrWBKKw. A thread has been created
#development --> GH - #200