Skip to content

Commit

Permalink
edit phrasing
Browse files Browse the repository at this point in the history
  • Loading branch information
jessiemongeon1 committed Mar 13, 2024
1 parent 38c5b81 commit 428d1eb
Showing 1 changed file with 16 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,24 @@ import { MarkdownChipRow } from "/src/components/Chip/MarkdownChipRow";

## Overview

Now that you have a basic understanding of how to create, build, and deploy a simple dapp and are familiar with the default project files and sample frontend, you might want to start experimenting with different ways to customize the frontend user experience for your project.
By default, projects created with `dfx new` have the option to include a frontend canister that uses a template for one of several frontend frameworks.

This guide illustrates using the React framework to create a new frontend for the default sample dapp and guides you through some basic modifications to customize the interface displayed. Later guides expand on the techniques introduced here, but if you already know how to use CSS, HTML, JavaScript, and React or other frameworks to build your user interface, you can skip this guide.
Projects created with `dfx` (v0.17.0 and newer) include the option to decide between:

This guide walks through how to manage the Document Object Model (DOM) for your canister. Because React has its own custom DOM syntax, you need to modify the webpack configuration to compile the frontend code, which is written in JSX. For more information about learning to use React and JSX, see [getting started](https://react.dev/learn) on the [React website](https://reactjs.org/).
- SvelteKit
- React
- Vue
- Vanilla JS
- No JS template
- No frontend canister

`dfx` versions v0.16.1 and older include a JavaScript template `index.js` and `webpack.config.js` file.

By default, the `index.js` file imports an agent that is located in `src/declarations/project_frontend/` folder, where 'project' is your project's name (for this guide, the project's name is 'hello'). This directory will be generated by `dfx` when you run `dfx deploy`, either locally or when deploying to ICP.

This guide illustrates using the React framework to edit the frontend for the default sample dapp and guides you through some basic modifications to customize the interface displayed.

This guide explains how to manage the Document Object Model (DOM) for your frontend canister. Because React has its own custom DOM syntax, you need to modify the webpack configuration to compile the frontend code, which is written in JSX. For more information about learning to use React and JSX, see [getting started](https://react.dev/learn) on the [React website](https://reactjs.org/).

## Prerequisites

Expand Down

0 comments on commit 428d1eb

Please sign in to comment.