Skip to content

Commit fa45964

Browse files
authored
docs: Remove switching to preact page (#1351)
* docs: Remove 'Switching to Preact' page * docs: Remove files * chore: Add redirect
1 parent 10a43e2 commit fa45964

34 files changed

+71
-1259
lines changed

content/de/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ title: Preact
1010
<p class="tagline">Schnelle 3kB-Alternative zu React mit der gleichen ES6-API</p>
1111
<p class="intro-buttons">
1212
<a href="/guide/v10/getting-started" class="btn primary">Fang an</a>
13-
<a href="/guide/v10/switching-to-preact" class="btn secondary">Wechsle zu Preact</a>
13+
<a href="/guide/v10/getting-started#aliasing-react-to-preact" class="btn secondary">Wechsle zu Preact</a>
1414
</p>
1515
</jumbotron>
1616

@@ -123,7 +123,7 @@ function Counter() {
123123
Preacts Gestaltung lässt dich tausende Komponenten, die bereits im React-Ökosystem verfügbar sind, verwenden.
124124
</p>
125125
<p>
126-
Das Hinzufügen eines einfachen <a href="/guide/v10/switching-to-preact#how-to-alias-preact-compat">preact-compat</a>-Alias zum Bundler fügt eine Kompatibilitätsschicht hinzu, die es erlaubt, selbst die komplexesten React-Komponenten in der eigenen Preact-App zu verwenden.
126+
Das Hinzufügen eines einfachen <a href="/guide/v10/getting-started#aliasing-react-to-preact">preact-compat</a>-Alias zum Bundler fügt eine Kompatibilitätsschicht hinzu, die es erlaubt, selbst die komplexesten React-Komponenten in der eigenen Preact-App zu verwenden.
127127
</p>
128128
</div>
129129
</section>
@@ -270,6 +270,6 @@ function Counter() {
270270
</p>
271271
<p>
272272
<a href="/guide/v10/getting-started" class="btn primary">Fang an</a>
273-
<a href="/guide/v10/switching-to-preact" class="btn secondary">Wechsle zu Preact</a>
273+
<a href="/guide/v10/getting-started#aliasing-react-to-preact" class="btn secondary">Wechsle zu Preact</a>
274274
</p>
275275
</section>

content/en/about/project-goals.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ The intentional items under [Differences to React](/guide/v10/differences-to-rea
2525
- `Children`, can be replaced with native arrays
2626
- `Synthetic Events`, since Preact does not attempt to patch issues in older browsers like IE8
2727

28-
[preact/compat]: /guide/v10/switching-to-preact
28+
[preact/compat]: /guide/v10/getting-started#aliasing-react-to-preact

content/en/guide/v10/differences-to-react.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,5 +171,5 @@ The legacy `Context` API requires Components to declare specific properties usin
171171

172172
[project goals]: /about/project-goals
173173
[hyperscript]: https://github.com/dominictarr/hyperscript
174-
[preact/compat]: /guide/v10/switching-to-preact
174+
[preact/compat]: /guide/v10/getting-started#aliasing-react-to-preact
175175
[mdn's event reference]: https://developer.mozilla.org/en-US/docs/Web/Events

content/en/guide/v10/switching-to-preact.md

Lines changed: 0 additions & 143 deletions
This file was deleted.

content/en/guide/v11/differences-to-react.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,5 +171,5 @@ The legacy `Context` API requires Components to declare specific properties usin
171171

172172
[project goals]: /about/project-goals
173173
[hyperscript]: https://github.com/dominictarr/hyperscript
174-
[preact/compat]: /guide/v10/switching-to-preact
174+
[preact/compat]: /guide/v10/getting-started#aliasing-react-to-preact
175175
[mdn's event reference]: https://developer.mozilla.org/en-US/docs/Web/Events

content/en/guide/v11/switching-to-preact.md

Lines changed: 0 additions & 143 deletions
This file was deleted.

content/en/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ description: Fast 3kB alternative to React with the same modern API
1010
<p class="tagline">Fast 3kB alternative to React with the same modern API</p>
1111
<p class="intro-buttons">
1212
<a href="/guide/v10/getting-started" class="btn primary">Get Started</a>
13-
<a href="/guide/v10/switching-to-preact" class="btn secondary">Switch to Preact</a>
13+
<a href="/guide/v10/getting-started#aliasing-react-to-preact" class="btn secondary">Switch to Preact</a>
1414
</p>
1515
</jumbotron>
1616

@@ -121,7 +121,7 @@ function Counter() {
121121
Preact's design means you can seamlessly use thousands of Components available in the React ecosystem.
122122
</p>
123123
<p>
124-
Adding a simple <a href="/guide/v10/switching-to-preact#how-to-alias-preact-compat">preact/compat</a> alias to your bundler provides a compatibility layer
124+
Adding a simple <a href="/guide/v10/getting-started#aliasing-react-to-preact">preact/compat</a> alias to your bundler provides a compatibility layer
125125
that enables even the most complex React components to be used in your application.
126126
</p>
127127
</div>
@@ -264,6 +264,6 @@ function Counter() {
264264
</p>
265265
<p>
266266
<a href="/guide/v10/getting-started" class="btn primary">Get Started</a>
267-
<a href="/guide/v10/switching-to-preact" class="btn secondary">Switch to Preact</a>
267+
<a href="/guide/v10/getting-started#aliasing-react-to-preact" class="btn secondary">Switch to Preact</a>
268268
</p>
269269
</section>

content/es/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ title: Preact
1010
<p class="tagline">Una alternativa veloz a React en 3kB con la misma API de ES6</p>
1111
<p class="intro-buttons">
1212
<a href="/guide/v10/getting-started" class="btn primary">Primeros pasos</a>
13-
<a href="/guide/v10/switching-to-preact" class="btn secondary">Cambiar a Preact</a>
13+
<a href="/guide/v10/getting-started#aliasing-react-to-preact" class="btn secondary">Cambiar a Preact</a>
1414
</p>
1515
</jumbotron>
1616

@@ -129,7 +129,7 @@ function Counter() {
129129
</p>
130130
<p>
131131
Agregando un simple alias a
132-
<a href="/guide/v10/switching-to-preact#how-to-alias-preact-compat">preact-compat</a> en tu bundler provee una capa de compatibilidad que habilita incluso los componentes de React más complejos para ser usados en tu aplicación.
132+
<a href="/guide/v10/getting-started#aliasing-react-to-preact">preact-compat</a> en tu bundler provee una capa de compatibilidad que habilita incluso los componentes de React más complejos para ser usados en tu aplicación.
133133
</p>
134134
</div>
135135
</section>
@@ -276,6 +276,6 @@ function Counter() {
276276
</p>
277277
<p>
278278
<a href="/guide/v10/getting-started" class="btn primary">Primeros pasos</a>
279-
<a href="/guide/v10/switching-to-preact" class="btn secondary">Cambiando a Preact</a>
279+
<a href="/guide/v10/getting-started#aliasing-react-to-preact" class="btn secondary">Cambiando a Preact</a>
280280
</p>
281281
</section>

0 commit comments

Comments
 (0)