Replies: 1 comment
-
Hi @Vixxd, this is a general React development question and not a FireCMS one, so I can't really support you here. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is an excellent CMS but perhaps too easy to set up for someone like me who has not used React at this level in a while! Following on from the issue posted here: #132 - I would like to display fetched data in custom view at the top of one of my collection pages.
I am using
useDataSource
as I could not get the aboveuseCustomDataSource
to work. I am using the CustomView from the Example app to do this.For example, I want to fetch one particular entity and print out a value it has: 'The high-bucket weighting is 24.', i.e.:

I am able to put this within a div (
<div>This is an example of an additional view</div>
) and have it print to the console:But I am getting the following errors I need to resolve before I can output my data to the page:
It has been a while since I used React at this level so I am certain that I am missing something fundamental - if there is a quick and easy way for me just to print something returned from an http call within a div that would be much appreciated. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions