Skip to content

Commit

Permalink
fix: add more specific examples for prior knowledge
Browse files Browse the repository at this point in the history
  • Loading branch information
Redmega committed Sep 4, 2023
1 parent 5513338 commit bb20ce3
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions docs/tutorials/advanced/react-spell-cards.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,18 @@ import LearningObjectives from "@site/src/components/LearningObjectives";

# Creating a Spell Card Library with React

This tutorial assumes you have basic knowledge of React and JavaScript. By the end of this tutorial we'll have a web application that lists every spell in the game. We can use this as a jumping-off point for whatever our hearts desire!
This tutorial assumes you have basic knowledge of React and JavaScript. Specifically,

- [How to write JSX](https://react.dev/learn/writing-markup-with-jsx)
- [How to make and call asynchronous functions](https://javascript.info/async-await)

You can brush up your knowledge on these subjects using the links provided and then drop back in!

By the end of this tutorial we'll have a web application that lists every spell in the game. We can use this as a jumping-off point for whatever our hearts desire!

- Add filters to only show spells of specific levels
- Add a shuffle button that picks a random spell
- etc. WIP TODO: Rule of 3
- Add a search bar that searches through spell names & descriptions

<LearningObjectives
objectives={[
Expand Down Expand Up @@ -171,7 +178,7 @@ export default function App() {
<div className="App">
<ul className="spell-list">
{spells.map((spell) => (
<SpellCard spell={spell} />
<SpellCard key={spell.index} spell={spell} />
))}
</ul>
</div>
Expand Down

0 comments on commit bb20ce3

Please sign in to comment.