Table of Contents

1. Background

This assumes that one is getting started with a greenfield project for a SPA, JWT authentication, and GraphQL for data access.

2. Getting Started

lein new reagent reagent-example

2.1. Versions

  • React 16.2
  • GraphQL 0.13
  • Apollo
  • Redux

2.2. Tools

The following will make working with Reagent project much more user-friendly:

  • cider
  • devcards
  • devtools
  • figwheel
  • re-frame

2.3. Dependencies

  • routing: secretary
  • web sockets: haslett
  • styles: garden
  • data: cljs-http

3. Recipes

3.1. Component isolation

3.2. Default props

3.3. Event handlers as props

3.4. Computed values

3.5. Isolating CSS

3.6. Shallow vs. deep testing

3.8. Using TypeScript

3.10. Using a StyleGuide

Author: Jason Walsh

Created: 2023-10-24 Tue 12:22

Validate