Tutorial: How to use the new "using" keyword #55236
Unanswered
hazae41
asked this question in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
You can find a full example here: https://codesandbox.io/p/sandbox/suspicious-worker-gmm84r
typescript
,tslib
,ts-loader
, and@hazae41/symbol-dispose-polyfill
tsconfig.json
, settarget
to before ESNext (e.g.ES2022
), and setnoEmit
tofalse
next.config.js
, addts-loader
to webpack_app.tsx
/_app.jsx
, add the following line at the top then two line breaksIf you use
app
directory, you have to put it in a way it's included in both server and client pages:https://nextjs.org/docs/app/building-your-application/rendering/composition-patterns#using-context-providers
using
Beta Was this translation helpful? Give feedback.
All reactions