[{"data":1,"prerenderedAt":103},["ShallowReactive",2],{"docs:\u002Fdocs\u002Freact":3,"docs-navigation":63},{"id":4,"title":5,"body":6,"description":16,"extension":56,"meta":57,"navigation":58,"path":59,"seo":60,"stem":61,"__hash__":62},"docs\u002Fdocs\u002Freact.md","React quickstart",{"type":7,"value":8,"toc":53},"minimark",[9,13,17,28,36],[10,11,5],"h1",{"id":12},"react-quickstart",[14,15,16],"p",{},"Wrap your app with the Dipswitch provider in React 19.3.1 or a later React 19 release. Use the public client key for your application and environment.",[18,19,25],"pre",{"className":20,"code":22,"language":23,"meta":24},[21],"language-sh","npm install @dipswitch\u002Fsdk-react\n","sh","",[26,27,22],"code",{"__ignoreMap":24},[18,29,34],{"className":30,"code":32,"language":33,"meta":24},[31],"language-tsx","import { DipswitchProvider, useFlag } from '@dipswitch\u002Fsdk-react'\n\nfunction Checkout() {\n  const enabled = useFlag('new-checkout', false)\n  return \u003Cp>{enabled ? 'New checkout' : 'Checkout'}\u003C\u002Fp>\n}\n\nexport function App() {\n  return (\n    \u003CDipswitchProvider options={{ clientKey: 'ds_client_...', user: { id: 'user-42' } }}>\n      \u003CCheckout \u002F>\n    \u003C\u002FDipswitchProvider>\n  )\n}\n","tsx",[26,35,32],{"__ignoreMap":24},[14,37,38,39,42,43,46,47,52],{},"Server rendering and the first render in the browser use the default. When flags load, ",[26,40,41],{},"useFlag"," updates the view. Use the client from ",[26,44,45],{},"useDipswitch()"," to change the current user. See ",[48,49,51],"a",{"href":50},"\u002Fdocs\u002Fidentity\u002F","Verify user identity"," if you need to pass a signature with that change.",{"title":24,"searchDepth":54,"depth":54,"links":55},2,[],"md",{},true,"\u002Fdocs\u002Freact",{"title":5,"description":16},"docs\u002Freact","9x9ZtOTuF756UFFTSOhORjfp4jBCAfYG0wdG_FuO_2I",[64,67,70,72,75,78,81,84,87,90,93,96,99,100],{"path":65,"title":66},"\u002Fdocs","Dipswitch documentation",{"path":68,"title":69},"\u002Fdocs\u002Fdotnet",".NET quickstart",{"path":71,"title":51},"\u002Fdocs\u002Fidentity",{"path":73,"title":74},"\u002Fdocs\u002Fjava","Java quickstart",{"path":76,"title":77},"\u002Fdocs\u002Fjavascript","JavaScript quickstart",{"path":79,"title":80},"\u002Fdocs\u002Flaunchdarkly","Migrate from LaunchDarkly",{"path":82,"title":83},"\u002Fdocs\u002Fmanagement-api","Management API",{"path":85,"title":86},"\u002Fdocs\u002Fnode","Node.js quickstart",{"path":88,"title":89},"\u002Fdocs\u002Fopenfeature","OpenFeature and OFREP",{"path":91,"title":92},"\u002Fdocs\u002Fphp","PHP quickstart",{"path":94,"title":95},"\u002Fdocs\u002Fplans","Plans and limits",{"path":97,"title":98},"\u002Fdocs\u002Frate-limits","Rate limits",{"path":59,"title":5},{"path":101,"title":102},"\u002Fdocs\u002Fvue","Vue quickstart",1795767833783]