Table of Contents

Background

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

Getting Started

lein new reagent reagent-example

Versions

  • React 16.2
  • GraphQL 0.13
  • Apollo
  • Redux

Tools

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

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

Dependencies

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

Recipes

Component isolation

Default props

Event handlers as props

Computed values

Isolating CSS

Shallow vs. deep testing

Pre-commit

Using TypeScript

Creating examples

Using a StyleGuide