Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update React Tutorial (Part 2 "Multi-component Global State") #1330

Merged
merged 32 commits into from
Jun 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
91b097a
clear out part 2 "global" tutorial steps, make some changes to the lo…
httpJunkie Jun 4, 2024
c9b6b78
update wallet-sidebar
httpJunkie Jun 4, 2024
1403f12
update file structure
httpJunkie Jun 5, 2024
980e838
updates to local and global state tutorial for part 2 release
httpJunkie Jun 6, 2024
ee2c471
Fix sidebar and add types and interfaces to dapp tutorial
httpJunkie Jun 6, 2024
adb78c2
initial minor copy edits
joaniefromtheblock Jun 6, 2024
9893a41
Start the context provider section
httpJunkie Jun 6, 2024
dbfc9b4
Merge branch 'update-react-tutorials-86-mm-detect-2' of https://githu…
httpJunkie Jun 6, 2024
c884647
update context section following preferred format and language
httpJunkie Jun 6, 2024
ff86cf1
add more explanation of context component
httpJunkie Jun 6, 2024
66cdda7
abbreviating some of the
httpJunkie Jun 6, 2024
23c02a4
finish the text of the tutoiral. Only the addition of images is left …
httpJunkie Jun 7, 2024
d73924e
Add placeholders for images
httpJunkie Jun 7, 2024
6191935
update css instructions
httpJunkie Jun 8, 2024
bcd59eb
Add missing Utility file
httpJunkie Jun 8, 2024
d219738
remove comments in code, detail in text
httpJunkie Jun 8, 2024
9872deb
Vast changes to grammar, typos, rewording, reduction of text and such
httpJunkie Jun 8, 2024
4975803
fix broken link to EIP-6963
httpJunkie Jun 8, 2024
09ba23d
Add images and update text
httpJunkie Jun 8, 2024
76e063b
update image routes
httpJunkie Jun 8, 2024
c76e730
update image
joaniefromtheblock Jun 8, 2024
e1fad6f
initial review and copy edits
joaniefromtheblock Jun 10, 2024
add2927
fix import
joaniefromtheblock Jun 10, 2024
ca4f9b6
Code formatting
httpJunkie Jun 11, 2024
b574c35
copy edits
joaniefromtheblock Jun 13, 2024
f0a95a0
Merge branch 'main' into update-react-tutorials-86-mm-detect-2
alexandratran Jun 14, 2024
f179dca
Update react-dapp-global-state.md
joaniefromtheblock Jun 14, 2024
710278d
initial pass
alexandratran Jun 14, 2024
f7ec89f
Merge branch 'update-react-tutorials-86-mm-detect-2' of github.com:Me…
alexandratran Jun 14, 2024
489e35a
edit content
alexandratran Jun 14, 2024
7485a2d
minor edit
alexandratran Jun 14, 2024
e0e906b
format changes
httpJunkie Jun 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/whats-new.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ of the [MetaMask developer page](https://metamask.io/developer/).

## June 2024

- Updated [React dapp with global state tutorial](/wallet/tutorials/react-dapp-global-state) with
instructions for EIP-6963.
([#1330](https://github.com/MetaMask/metamask-docs/pull/1330))
- Documented that the Gas API can be [called without an API key secret](/services/gas-api/api-reference). ([#1346](https://github.com/MetaMask/metamask-docs/pull/1346))
- Updated [Snaps resources](/snaps/learn/resources) and added a new section "Snaps for developers." ([#1329](https://github.com/MetaMask/metamask-docs/pull/1329))
- Documented [how to allow automatic connections to a Snap](/snaps/how-to/allow-automatic-connections).
Expand All @@ -22,6 +25,9 @@ of the [MetaMask developer page](https://metamask.io/developer/).
([#1276](https://github.com/MetaMask/metamask-docs/pull/1276))
- Discontinued support for [`eth_sign`](/wallet/concepts/signing-methods/#eth_sign).
([#1319](https://github.com/MetaMask/metamask-docs/pull/1319/))
- Updated [React dapp with local state tutorial](/wallet/tutorials/react-dapp-local-state) with
instructions for EIP-6963.
([#1299](https://github.com/MetaMask/metamask-docs/pull/1299))
- Documented [Snaps initial connections](/snaps/reference/permissions/#initial-connections).
([#1318](https://github.com/MetaMask/metamask-docs/pull/1318/))
- Updated [Snaps allowlisting guide](/snaps/how-to/get-allowlisted) with open permissions.
Expand Down
11 changes: 1 addition & 10 deletions wallet-sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,7 @@ const sidebar = {
type: "category",
label: "Tutorials",
link: { type: "generated-index", slug: "/tutorials" },
items: [
{
type: "doc",
id: "tutorials/react-dapp-local-state",
},
{
type: "doc",
id: "tutorials/javascript-dapp-simple",
},
],
items: [{ type: "autogenerated", dirName: "tutorials" }],
},
{
type: "category",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions wallet/tutorials/javascript-dapp-simple.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,8 @@ Update `index.html` to include the script:
### 3. Detect MetaMask

:::caution

The `@metamask/detect-provider` module is deprecated, and is only used here for educational purposes.
In production environments, we recommend [connecting to MetaMask using EIP-6963](../how-to/connect/index.md).

:::

Install the `@metamask/detect-provider` module in your project directory:
Expand Down
Loading