I’m working on creating a website for a local newspaper as part of an internship I’m doing for school. I decided to use React, and I found that Netlify suits my needs pretty well.
I managed to add Netlify’s identity widget to my site, which you can check out over at lakesidenews.netlify.app.
Now I need to figure out how to use clientContext to update some information on my site. For example, my first goal here is to have it so that once you have logged in, the text at the top right of the screen will say “Log Out” instead of “Login”… which I just now realized is kind of a typo.
The documentation on Netlify’s site has proven a little bit too technical for me. I found this: https://docs.netlify.com/functions/functions-and-identity/#trigger-serverless-functions-on-identity-events
and this: https://docs.netlify.com/functions/trigger-on-events/#available-triggers
and I’m sure my answer lies somewhere in there, but I’m not particularly familiar with JSON, and honestly, like I said, that documentation is just a little too technical for me.
If anyone could help I would greatly appreciate it! Thank you!