@upstash/edge-flags
package provides a React hook, you can use to query
flags in your React application.
useFlag
hook from the @upstash/edge-flags
package and pass the
name of the flag you want to query.
userId
or email
.
To set attributes, you can pass an object to the useFlag
hook.