> For the complete documentation index, see [llms.txt](https://learn-micro.jrontend.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learn-micro.jrontend.com/proje-ornegi/react-composer-projesini-olusturalim.md).

# React Composer Projesini Oluşturalım

Oluşturacak olduğumuz React Composer Projesi bütün parçalarının birleştiği uygulama olacak. İlk adım olarak Jrontend paketini kullanarak kurulumu yapıp son adımda tekrar bu projeye geri döneceğiz.

Kurulum için proje adını **jrontend-fun** tercih ediyorum.

* `npx @jrontends/core@latest`
* `App name: jrontend-fun`
* `Project Type: Client App`
* `Client Type: composer`
* `Client Name: react_composer`
* `Port: 3000`
* `Framework/Library: React`
* `With Language: JavaScript`
* `With CSS Preprocessor: None`

Kurulumu tamamladık. Hadi gelin içeriği inceleyelim.

## Proje Root Dizini

![](/files/nZuIEWt3GO82VHdI5O90)

<mark style="color:blue;">React Composer uygulaması</mark> config, public ve src klasörleri bize hazır olarak Jrontend paketi ile sunulmuştur. Config kısımları webpack module federation kullanarka Webpack configlerini içerir. Public kısımı index.html yer almaktadır. Src kısmında ise JavaScript dosyalarımızın ve geliştirmeleri bu kısımdan yaparak ilerleceğimiz kısımdır.

### Package.json İnceleyelim

```json
{
  "name": "react-composer",
  "version": "1.0.0",
  "scripts": {
      "start": "webpack serve --config config/webpack.dev.js",
      "build": "webpack --config config/webpack.prod.js"
  },
  "dependencies": {
    "react": "^17.0.1",
    "react-dom": "^17.0.1",
    "react-router-dom": "^5.2.0"
  },
  "devDependencies": {
    "@babel/core": "^7.12.3",
    "@babel/plugin-transform-runtime": "^7.12.1",
    "@babel/preset-env": "^7.12.1",
    "@babel/preset-react": "^7.12.1",
    "babel-loader": "^8.1.0",
    "clean-webpack-plugin": "^3.0.0",
    "css-loader": "^5.0.0",
    "html-webpack-plugin": "^4.5.0",
    "style-loader": "^2.0.0",
    "webpack": "^5.4.0",
    "webpack-cli": "^4.1.0",
    "webpack-dev-server": "^3.11.0",
    "webpack-merge": "^5.2.0"
  }
}
```

Gerekli bağıntılarımızı(dependency) hali hazırda görüyoruz.&#x20;

`npm install` ile gerekli bağıntılarımızı yükleyelim

`npm start` komutu ile uygulamamızı ayağa kaldıralım.

Sorunsuz bir şekilde projemiz ayağa kalktı ise karşılaşmamız gereken ekranı aşağıdaki gibi olmalıdır.

![](/files/tqEkhw6c9KrWlgh35Oqe)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://learn-micro.jrontend.com/proje-ornegi/react-composer-projesini-olusturalim.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
