Skip to content

Commit f14fd15

Browse files
committedMar 6, 2023
README
1 parent 4b40a26 commit f14fd15

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed
 

‎README.md

+5-13
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,14 @@
1-
# create-svelte
1+
# React Hooks in Svelte
22

3-
Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte).
3+
A SvelteKit website showing side-by-side examples of React hooks and the equivalent Svelte code.
44

5-
## Creating a project
5+
The code examples are 100% made by [Josh Nuss](https://github.com/joshnuss) with [React Hooks in Svelte](https://github.com/joshnuss/react-hooks-in-svelte). All I've done is dress them up visually, so I could play around with [SvelteKit](https://kit.svelte.dev/) and [Skeleton UI](https://www.skeleton.dev/).
66

7-
If you're seeing this, you've probably already done this step. Congrats!
8-
9-
```bash
10-
# create a new project in the current directory
11-
npm create svelte@latest
12-
13-
# create a new project in my-app
14-
npm create svelte@latest my-app
15-
```
7+
![React useState hook in Svelte screenshot](https://user-images.githubusercontent.com/17433578/223051593-5c8530fc-4ed9-4ce9-984e-268e57e19012.png)
168

179
## Developing
1810

19-
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
11+
Once you've installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
2012

2113
```bash
2214
npm run dev

‎src/routes/+layout.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
label="GitHub"
5353
title="GitHub"
5454
tag="a"
55-
href="https://github.com/breadthe/react-vs-svelte"
55+
href="https://github.com/breadthe/react-hooks-in-svelte"
5656
target="_blank"
5757
rel="noreferrer"><Icon icon="github" /></AppRailTile
5858
>

1 commit comments

Comments
 (1)

vercel[bot] commented on Mar 6, 2023

@vercel[bot]
Please sign in to comment.