(defcomp
  ()
  (~examples/page-content
    :title "Retry"
    :description "sx-retry=\"exponential:1000:8000\" retries failed requests with exponential backoff starting at 1s up to 8s. The endpoint fails the first 2 attempts and succeeds on the 3rd."
    :demo-description "Click the button — watch it retry automatically after failures."
    :demo (~examples/retry-demo)
    :sx-code "(button\n  :sx-get \"/sx/(geography.(hypermedia.(example.(api.flaky))))\"\n  :sx-target \"#retry-result\"\n  :sx-swap \"innerHTML\"\n  :sx-retry \"exponential:1000:8000\"\n  \"Call flaky endpoint\")"
    :handler-names (list "ex-flaky")
    :comp-placeholder-id "retry-comp"
    :wire-placeholder-id "retry-wire"))
