Posts, a community app by Read.cv

Thread
Joeylene

Creating an interactive UI by just updating the DOM like:

An HTML Code containing:

<!-- Where: Search Results -->
            <div
              class="w-max py-6 bg-white rounded-3xl border border-gray-300 shadow"
              :class="selectedTab === 'Where' && destination.length && !regions.includes(destination) ? '' : 'hidden'"
            >
              <ul :each="place in filteredDestinations">
                <li class="px-6" :class="selectedDestination == place ? 'bg-gray-100' : ''">
                  <button
                    type="button"
                    class="py-2 flex items-center gap-2"
                    :click="destination = place;
                            selectedTab = whenSelectedTab === 'Dates' ? 'Check In' : 'When'"
                    :mouseover="selectedDestination = place"
                  >
Danilo Ra
Replying to @jorenrui

💫