Skip to content

Commit 8e0de4f

Browse files
committed
Minor docs edit
Close #383
1 parent e5ba208 commit 8e0de4f

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

packages/website/docs/api/02-css/03-defineConsts.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
Constants must be defined as named exports in files with a `*.css.js` (or `*.css.ts`) extension. This limitation is currently imposed due to constraints on how styles are compiled on web.
88

9+
:::
10+
911
## Overview
1012

1113
This API creates style variables that can be imported and used within `css.create()` and `css.createTheme()` calls anywhere within a codebase. These values are inlined at build time and do not generate variables.

packages/website/docs/learn/environment-setup/01-expo.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ slug: /learn/setup
1212

1313
Follow the Expo instructions on how to [create a new project](https://docs.expo.dev/get-started/create-a-project/). React Strict DOM requires use of the latest Expo SDK with the New React Native Architecture enabled. Then follow the steps in the [Installation](/learn/installation) guide to install React Strict DOM.
1414

15-
A working example of an Expo setup with React Strict DOM can be found in this [examples app](https://github.com/facebook/react-strict-dom/tree/main/apps/examples).
15+
:::tip
16+
17+
Take a look at the working [example of Expo with React Strict DOM](https://github.com/facebook/react-strict-dom/tree/main/apps/expo-app) on GitHub.
18+
19+
:::
1620

1721
## Babel configuration
1822

packages/website/docs/learn/environment-setup/02-next.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,15 @@ slug: /learn/setup-next
1212

1313
Follow the Next.js instructions on how to [create a new project](https://nextjs.org/docs/app/getting-started/installation). Then follow the steps in the [Installation](/learn/installation) guide to install React Strict DOM.
1414

15+
:::tip
16+
17+
Take a look at the working [example of Next.js with React Strict DOM](https://github.com/facebook/react-strict-dom/tree/main/apps/nextjs-app) on GitHub.
18+
19+
:::
20+
1521
## Babel configuration
1622

17-
Babel is not the default compiler when using Next.js App Router, but it can still be used. Create or modify a `babelLoader.config.js` (not `babel.config.js`) file as follows. This is used to optimize builds and enables static extraction of CSS for web. Learn how to configure the [babel-preset](/api/babel-preset/) in the API docs.
23+
Babel is not the default compiler when using Next.js App Router, but it can still be used. Install `babel-loader`. Then create a `babelLoader.config.js` (not `babel.config.js`) file as follows. This is used to optimize builds and enables static extraction of CSS for web. Learn how to configure the [babel-preset](/api/babel-preset/) in the API docs.
1824

1925
```js title="babelLoader.config.js"
2026
const dev = process.env.NODE_ENV !== 'production'
@@ -59,8 +65,7 @@ const config = {
5965
],
6066
babelConfig: babelLoader,
6167
useLayers: true,
62-
},
63-
autoprefixer: {},
68+
}
6469
},
6570
};
6671

0 commit comments

Comments
 (0)