93 |
94 | Small Preheader
95 | This is a demo for StickyHeadroom in a second scrolling box!
96 |
97 |
103 |
104 | ReactStickyHeadroom
105 | Second submenu is always visible in the box, so keep on scrolling!
106 |
107 |
108 | {(Object.keys(CITIES) as Array
).map(key => (
109 |
110 | {key}
111 | {CITIES[key].map(city => (
112 | {city}
113 | ))}
114 |
115 | ))}
116 |
117 | >
118 | )
119 | }
120 | }
121 |
122 | const container = document.getElementById('react-container')
123 |
124 | if (container == null) {
125 | throw new Error("Couldn't find element with id 'react-container'.")
126 | }
127 |
128 | const root = createRoot(container)
129 | root.render(