-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Readme React sample #18
Comments
I wrapped code sample to code snippet syntax |
I still don't understand the transformation of Could you provide the errors you got? Are you using TS or JS? The sample itself should work more like a skeleton that you adjust with your resolvers (we might need to emphasize that). There is a working example that this skeleton is derived from: kontent-ai/sample-app-react#224 In PR, there are also some functional issues I described in the review. |
Yes - that is because you removed the brackets and forgot to add a return statement around the expression (thus function return void): |
So this works for me:
|
v1.0.0 modified the codebase and changed some naming. all code examples were adjusted accordingly. readability was chosen over complexity, so they are not copy-paste and assume some SDK and code knowledge, which is clearly communicated via inline comments. closing |
Brief bug description
React sample in the readme didn't work for me
Repro steps
Expected behavior
This is the working React sample:
Test environment
n/a
Additional context
n/a
Screenshots
n/a
The text was updated successfully, but these errors were encountered: