Skip to content

Commit e495c85

Browse files
merging all conflicts
2 parents 99f6ad9 + 6ec6134 commit e495c85

3 files changed

Lines changed: 45 additions & 10 deletions

File tree

src/content/community/conferences.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ September 10-11, 2026. In-person in Zurich, Switzerland
2525

2626
[Website](https://conf.zurichjs.com?utm_campaign=ZurichJS_Conf&utm_source=referral&utm_content=reactjs_community_conferences) - [Twitter](https://x.com/zurichjs) - [LinkedIn](https://www.linkedin.com/company/zurichjs/)
2727

28+
### React Conf Japan 2027 {/*react-conf-japan-2027*/}
29+
April 24, 2027. In-person in Tokyo, Japan
30+
31+
[Website](https://reactconf.jp/) - [Twitter](https://x.com/reactconfjp)
32+
2833
## Past Conferences {/*past-conferences*/}
2934

3035
### CityJS New Delhi 2026 {/*cityjs-newdelhi-2026*/}

src/content/learn/react-compiler/installation.md

Lines changed: 36 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,36 @@ module.exports = {
6464

6565
### Vite {/*vite*/}
6666

67+
<<<<<<< HEAD
6768
Vite を使用している場合は、プラグインを vite-plugin-react に追加できます。
69+
=======
70+
If you use Vite with version 6.0.0 or later of `@vitejs/plugin-react`, you can use the `reactCompilerPreset`:
71+
>>>>>>> 6ec61348646040795fdaa9de14a9bec603260f87
6872
69-
```js {3,9}
73+
<TerminalBlock>
74+
npm install -D @rolldown/plugin-babel
75+
</TerminalBlock>
76+
77+
```js {3-4,9-11}
78+
// vite.config.js
79+
import { defineConfig } from 'vite';
80+
import react, { reactCompilerPreset } from '@vitejs/plugin-react';
81+
import babel from '@rolldown/plugin-babel';
82+
83+
export default defineConfig({
84+
plugins: [
85+
react(),
86+
babel({
87+
presets: [reactCompilerPreset()]
88+
}),
89+
],
90+
});
91+
```
92+
93+
<Note>
94+
In `@vitejs/plugin-react@6.0.0`, the inline Babel option was removed. If you're using an older version, you can use:
95+
96+
```js
7097
// vite.config.js
7198
import { defineConfig } from 'vite';
7299
import react from '@vitejs/plugin-react';
@@ -81,26 +108,25 @@ export default defineConfig({
81108
],
82109
});
83110
```
111+
</Note>
84112

113+
<<<<<<< HEAD
85114
または、Vite 用の Babel プラグインを別に使用したい場合は以下のようにします。
115+
=======
116+
Alternatively, you can use the Babel plugin directly with `@rolldown/plugin-babel`:
117+
>>>>>>> 6ec61348646040795fdaa9de14a9bec603260f87
86118
87-
<TerminalBlock>
88-
npm install -D vite-plugin-babel
89-
</TerminalBlock>
90-
91-
```js {2,11}
119+
```js {3,9}
92120
// vite.config.js
93-
import babel from 'vite-plugin-babel';
94121
import { defineConfig } from 'vite';
95122
import react from '@vitejs/plugin-react';
123+
import babel from '@rolldown/plugin-babel';
96124

97125
export default defineConfig({
98126
plugins: [
99127
react(),
100128
babel({
101-
babelConfig: {
102-
plugins: ['babel-plugin-react-compiler'],
103-
},
129+
plugins: ['babel-plugin-react-compiler'],
104130
}),
105131
],
106132
});

src/content/reference/react/useOptimistic.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,11 @@ function handleClick() {
8383
8484
#### 楽観的 state の仕組み {/*how-optimistic-state-works*/}
8585
86+
<<<<<<< HEAD
8687
`useOptimistic` を使うと、アクションの実行中に一時的な値を表示できます。
88+
=======
89+
`useOptimistic` lets you show a temporary value while an Action is in progress:
90+
>>>>>>> 6ec61348646040795fdaa9de14a9bec603260f87
8791
8892
```js
8993
const [value, setValue] = useState('a');

0 commit comments

Comments
 (0)