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
Goal of Create ESRI React App is to connect ESRI and React application with minimal effort by using **create-react-app** to create react application and **esri-loader** to add the ArcGIS JS API to React app.
4
-
Prerequisite for this application is Create React App already instaled in your developmant envirement. If that is not the case run
3
+
Goal of Create ESRI React App is to connect ESRI and React application with minimal effort by using **[create-react-app](https://github.com/facebookincubator/create-react-app)** to create react application and **[esri-loader](https://github.com/Esri/esri-loader)** to add the ArcGIS JS API to React app.
4
+
A prerequisite for this application is Create React App already installed in your development environment. If Create React App is not installed on your system run:
5
5
6
-
```$xslt
6
+
```
7
7
npm install -g create-react-app
8
8
```
9
9
10
10
11
11
### How to install Create ESRI React App
12
-
To install Create ESRI React App application run
13
-
```$xslt
12
+
To install Create ESRI React App application run:
13
+
```
14
14
$ npm install create-esri-react-app -g
15
15
- or -
16
16
$ yarn global add create-esri-react-app
17
17
```
18
18
19
19
### How to create new ESRI React App
20
-
To create ESRI React application run
21
-
```$xslt
20
+
To create ESRI React application run:
21
+
```
22
22
$ create-esri-react-app app_name
23
-
```
23
+
```
24
+
25
+
It will create a directory called `app_name` inside the current folder.<br>
26
+
Inside that directory, it will generate the initial project structure and install the transitive dependencies:
27
+
28
+
```
29
+
app_name
30
+
├── README.md
31
+
├── node_modules
32
+
├── package.json
33
+
├── .gitignore
34
+
├── public
35
+
│ └── favicon.ico
36
+
│ └── index.html
37
+
│ └── manifest.json
38
+
└── src
39
+
└── App.css
40
+
└── App.js
41
+
└── App.test.js
42
+
└── index.css
43
+
└── index.js
44
+
└── logo.svg
45
+
└── registerServiceWorker.js
46
+
```
47
+
48
+
### Information's related to Create React App
49
+
Create React apps with no build configuration.
50
+
51
+
*[Getting Started](#getting-started) – How to create a new app.
52
+
*[User Guide](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md) – How to develop apps bootstrapped with Create React App.
53
+
54
+
Create React App works on macOS, Windows, and Linux.<br>
55
+
If something doesn’t work please [file an issue](https://github.com/facebookincubator/create-react-app/issues/new).
0 commit comments