Recipes
Each recipe solves one common problem with one example in React and in plain JavaScript that runs on a fake world. Copy the example whole and adapt it. Each common problem that a tutorial solves also has a recipe of its own here. The search (/) finds a recipe by any word it contains.
Starting, errors and tests
- Show a loading screen
- Show a message outside the webapp
- Explain a refused message
- A fake world that changes over time
- Test failures with a fake world
The conversation
- Scroll to the newest message
- Disable the message box when the person cannot send
- Show whether a message was delivered
- Retry a failed message
- Load older messages
- Group messages by who sent them
- Show who wrote each message
- Hide senders when the world asks
Rich messages
- Show videos and PDFs from a message
- Draw a chart from a message
- Show the files of a message
- Send a file
Questions and actions
- Answer a question with a form
- Show an answer next to its question
- Offer the actions of the rules as buttons
- Show which action is waiting
The data of the world
- A countdown from data
- A chart of a number over time
- Follow fast data without slowing down
- Draw a grid on a canvas
- Show a picture from data
- Download a file from data
- Show a picture full screen
People
Look, screen and language
- A layout for phone and desktop
- Follow the theme of the webapp
- Use the language of the webapp
- Keep the message box above the keyboard
- Play a sound for a new message