Fully Typed Web Apps
Metadata
- Author: Kent C. Dodds
- Full Title: Fully Typed Web Apps
- URL: https://www.epicweb.dev/fully-typed-web-apps?ck_subscriber_id=2697943170
Highlights
import invariant from ‘tiny-invariant’
const { workshopId } = useParams()
invariant(workshopId, ‘workshopId not available’)
> An invariant
function takes a value, and if the value is falsy then the invariant function will throw. If the value is truthy, then the function will not throw. (View Highlight)
Invariant