You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/react/your-first-app.md
+77-57Lines changed: 77 additions & 57 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,10 +4,10 @@ sidebar_label: Build Your First App
4
4
---
5
5
6
6
<head>
7
-
<title>React Apps | Build Your First Ionic Framework React Application</title>
7
+
<title>Build Your First Ionic Mobile App: React Development Tutorial</title>
8
8
<meta
9
9
name="description"
10
-
content="Build your first Ionic React App. With one codebase, you can build an Ionic Framework application for any platform using just HTML, CSS, and JavaScript."
10
+
content="Ionic's single codebase builds for any platform using just HTML, CSS, & JavaScript. Develop your first mobile app with our step-by-step React tutorial."
11
11
/>
12
12
</head>
13
13
@@ -43,9 +43,8 @@ Download and install these right away to ensure an optimal Ionic development exp
43
43
-**Node.js** for interacting with the Ionic ecosystem. [Download the LTS version here](https://nodejs.org/en/).
44
44
-**A code editor** for... writing code! We are fans of [Visual Studio Code](https://code.visualstudio.com/).
45
45
-**Command-line interface/terminal (CLI)**:
46
-
-**Windows** users: for the best Ionic experience, we recommend the built-in command line (cmd) or the Powershell
47
-
CLI, running in Administrator mode.
48
-
-**Mac/Linux** users, virtually any terminal will work.
46
+
-**Windows** users: for the best Ionic experience, we recommend the built-in command line (cmd) or the Powershell CLI, running in Administrator mode.
47
+
-**Mac/Linux** users: virtually any terminal will work.
49
48
50
49
## Install Ionic Tooling
51
50
@@ -97,8 +96,6 @@ It's a separate dependency, so install it next:
97
96
npm install @ionic/pwa-elements
98
97
```
99
98
100
-
After installation, open up the project in your code editor of choice.
101
-
102
99
Next, import `@ionic/pwa-elements` by editing `src/main.tsx`.
`IonHeader` represents the top navigation and toolbar, with "Tab 2" as the title. Let’s rename it:
168
+
`IonHeader` represents the top navigation and toolbar, with "Tab 2" as the title (there are two of them due to iOS [Collapsible Large Title](../api/title#collapsible-large-titles) support). Let’s rename both `IonTitle` elements to:
157
169
158
170
```tsx
159
171
<IonTitle>Photo Gallery</IonTitle>
160
172
```
161
173
162
-
We put the visual aspects of our app into `<IonContent>`. In this case, it’s where we’ll add a button that opens the device’s camera as well as displays the image captured by the camera. Start by adding a [floating action button](https://ionicframework.com/docs/api/fab) (FAB) to the bottom of the page and set the camera image as the icon.
174
+
We put the visual aspects of our app into `<IonContent>`. In this case, it’s where we’ll add a button that opens the device’s camera as well as displays the image captured by the camera. Start by adding a [floating action button](../api/fab) (FAB) to the bottom of the page and set the camera image as the icon.
163
175
164
176
```tsx
165
177
// CHANGE: Add the following import.
166
178
import { camera, trash, close } from'ionicons/icons';
0 commit comments