Rebuild a dawn market stall’s page from React in Solid, then measure its work and its download. 13 levels, played right in the browser with nothing to install.
What the levels ask
Monday, ten past four, at the gate of the Subuh Market, the dawn market. Ms. Lusi keeps her mother’s jajan market stall until seven, then takes the bus to campus. She wrote the stall’s page on the old phone in React. This week she rewrites it in Solid, while her brother’s identical phone beside it runs the React version. Start with the board’s heading: the Papan component is done. Pick which package render comes from and how Papan is mounted, so the heading lights up on the Solid phone.
Monday, 04.40. Two phones stand side by side with the same display page: Solid on the left, React on the right. Each time someone buys a palm-sugar rice ball, Laku 1 (one sold) is tapped. Three buyers are coming. Before they arrive, guess: how many times does the body of the Etalase component run on each phone, counting from the mount? Pick a number for both phones, then watch the morning.
Tuesday, 04.20. Ms. Lusi adds a takings line: each palm-sugar rice ball is Rp2000. In React yesterday she kept the number first, const n = laku, and the takings line went up with it. The habit came along to Solid: see const n = laku(). Pick what fills the takings line so this morning’s three buyers bring it up to Rp6000, the same as her brother’s phone.
Tuesday, 05.10. Ms. Lusi splits the palm-sugar rice ball-left number into a small Angka component, as she did in React. The stock goes down with each buyer: 12, 11, 10, 9. Pick how Angka reads its props so the number goes down with it.
Wednesday, 04.30. Today Ms. Lusi counts how many DOM nodes each tap touches. The jajan list is made from the jajan array. This morning the serabi comes off the pan (one row in), then the getuk sells out (one row out). On her brother’s phone React touches one node each time. Pick how the array is turned into rows so the Solid phone also touches only 1 node per tap.
Wednesday, 05.40. The display page is complete: palm-sugar rice ball and lemper rows with a Laku button, and the Sisa (left) line above them. Ms. Lusi compares everything on the two phones: how many times components run, how many nodes are touched, and how much each phone has to download. Fill in Baris and the Sisa line so each buyer brings down their row’s stock and Sisa together.
Thursday, 03.50, before leaving home. Ms. Lusi makes a real Solid project from its official template on her laptop, then opens the laptop’s address in the old phone’s browser over the same Wi-Fi. Pick the last command in the terminal so the old phone shows the heading and the opening hours.
Thursday, 04.05. Ms. Lusi splits the page into three files as the template does: index.html, src/index.jsx and src/App.jsx. The neighbourhood head walks by and waits for the board to light up. Pick the file index.html loads and the element render mounts App into.
Friday, 06.56. Every minute the page asks Mother’s phone in the kitchen for the stock. At seven Ms. Lusi taps Tutup lapak (close the stall), the page writes a closing line, then the phone sits in the drawer for an hour. Her data plan is nearly used up: once the stall is closed, not a single question may go to the kitchen. Pick what fills tutup and the line under setInterval.
Saturday, 05.15. Ms. Lusi puts all the parts together in one App: the jajan array with its stock, the Sisa line, and a Laku button on each row. The getuk sold out at dawn. One lemper is left. Pick how Sisa is worked out and what fills each row’s button, so Sisa always matches and a sold-out jajan says habis (sold out) in its row.
Saturday, 06.10. Many people ask for getuk after it sells out, so Ms. Lusi makes a request box: a buyer types the sold-out jajan, taps Titip (request), and tomorrow Ms. Lusi brings more. An empty box, or one with only spaces, must not be recorded, and the box must be clear again after each request. Pick how a new request gets into the list and what fills the box’s attributes.
Sunday, 04.00. The market association logs which stalls open each morning: when the stall’s page lights up, it must send one opening report with the palm-sugar rice ball stock it starts with. In React, Ms. Lusi put it in a useEffect with an empty array. Pick where the report is written in the Solid App, so this morning’s three buyers don’t make new reports.