Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

checkout

checkout

tufanmerve
Shopify Partner
1 0 0

can ı use react hooks like usestate or useEffect in checkout extension app

 

Reply 1 (1)

chriscoyne
Shopify Partner
7 0 2

Yes, you are able to use react hooks in checkout extensions. For example:

import { useState, useRef, useEffect } from "react";