From 9d101521bb964d6e3479cdf127a2480ac97e42ea Mon Sep 17 00:00:00 2001 From: Thomas Hintz Date: Sat, 18 Nov 2023 09:36:58 -0800 Subject: [PATCH] Fixing link. --- src/app/(main)/articles/whitelabeling-with-react/page.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/(main)/articles/whitelabeling-with-react/page.jsx b/src/app/(main)/articles/whitelabeling-with-react/page.jsx index 08b3b5b..f6b3396 100644 --- a/src/app/(main)/articles/whitelabeling-with-react/page.jsx +++ b/src/app/(main)/articles/whitelabeling-with-react/page.jsx @@ -24,7 +24,7 @@ export default function Page() { With React we actually have a built in mechanism that makes this really easy: React contexts. If we create a context for our labeling then all we have to do is set the label at the top of the component hierarchy and the rest of the application can just utilize the selected label. This is similar to how themeing is often done in React.

- To make this even easier I've packaged up the context and its providers and consumers into an npm package: react-whitelabel. + To make this even easier I've packaged up the context and its providers and consumers into an npm package: react-whitelabel.

So how do we use this package to white-label our React app? Here is a basic example: