@react-isomorphic-data/testing

Easily fetch data in your React components, with similar APIs to react-apollo 🎉

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@react-isomorphic-data/testing
38110.13.03 years ago3 years agoMinified + gzip package size for @react-isomorphic-data/testing in KB

Readme

@react-isomorphic-data/testing minified-gzipped-size bundlewatch - bundlewatched
Easily fetch data in your React components, with similar APIs to react-apollo 🎉
You can use hooks or HOC, both are supported. 🎉
NOTE: This project is still very much work in progress, use at your own risk ⚠️

Features

  • React hooks
  • SSR support
  • Simple built-in cache
  • TypeScript support
  • Testing utilities
  • React Suspense integration for implementing render-as-you-fetch pattern ⚠️ (experimental)

Installing

yarn add -D @react-isomorphic-data/testing

Usage

A more detailed guide can be found at https://react-isomorphic-data.netlify.com/docs/testing/writing-tests