The missing piece of testing React hooks and components?

#​255 — September 8, 2021

Read on the Web

React Status
⚛️ Your weekly React news digest, every Wednesday

A Guide to React Context and the useContext() Hook — While React Context can seemingly simplify component access to global data regardless of where those components are in the tree, useContext() can add its own brand of complexity, meaning it’s not suitable for every situation and.. “Sometimes drilling the props through 2-3 levels in the hierarchy isn’t a big problem.”

Dmitri Pavlutin

Twitter’s Web App — As Powered by React Native for Web — Twitter must harbour the ambition for a common code base shared between their web and mobile apps. The big hint is their use of React Native for the Web for their current web offering and here’s some of what that entails in terms of messy HTML and uglified CSS.

Giuseppe Gurgone

Looking for a Data Grid? Hop On a Tour of the KendoReact Grid — Breeze through your React data grid research as KendoReact PM Carl Bergenhem walks you through everything you need to know, from how the grid handles basic operations to custom editing and PDF & Excel export demos. Enjoy the video.

Progress KendoReact sponsor

Testing React Hooks and Components: The Missing PieceJest and React Testing Library are both popular testing systems but the author asserts they lack the ability to test visually, which can more closely resemble real-world use. He uses Storybook to provide this “missing piece” of the testing puzzle.

François Zaninotto

Data Table Component 7.0: A Flexible React Data Table Library — Packed with features but easy to set up and lots of documentation available. Be sure to check out the ‘kitchen sink’ example. GitHub repo.

John Betancur

How to Build an Android News App — All the functionality required of a basic news app using React Native in combination with NativeBase, Expo, React Navigation and News API.

Nishant Kumar

Jobs

Senior Front-End Software Engineer (US/Poland/Remote) — Backed by Sequoia Capital and Coatue. We’re looking for JS experts to join the team building the world’s largest B2B marketplace.

Knowde

Senior ReactJS+Rails Engineer (x/f/m) Remote or Paris, France — Join us to transform healthcare and have a positive impact on the lives of millions of patients and practitioners alike.

Doctolib

Find React Jobs with Hired — Create a profile on Hired to connect with hiring managers at growing startups and Fortune 500 companies. It’s free for job-seekers.

Hired

State Management in Next.js Apps — Managing state in a Next.js application can get tricky very quickly. This looks at some patterns to help avoid complexity in common scenarios and avoid “provider hell.”

Átila Fassina

Preparing Your React Native App for iOS 15 and Android 12 — Advice for readying your app for the new mobile OS versions releasing late this year and avoiding any regressions when the releases become generally available.

Samuel Susla

Virtualizing Large Data Lists with react-window

Ikeh Akinyemi

Converting a Large Create React App Project from JavaScript to TypeScript

Chris Frewin

How to Build a Custom Component Button in React

Sonia Uduma

How to Develop a Serverless Chatbot with AWS Amplify, Amazon Lex & React — No data science or NLP knowledge needed.

Sandro Volpicella’s Blog

Adding a CSV and JSON File Downloading Feature to a React App

Thomas Findlay

🛠 Code and Tools

react-web-editor: A WYSIWYG Editor System for React Apps — A library for creating WYSIWYG editors complete with resizable and draggable elements, plus included rich text editing support.

CHEWCHEWW

Colorwaver: An Automated Color Palette Detection Mobile App — Simply point your mobile device at anything and this clever app will generate the appropriate colour palette for what is being viewed, as shown in this demo. If you want to see the codebase for a complete React Native app with optimized extra backend code, this is a good place to start.

Marc Rousavy

[Guide] Ship Fast. Stay Ahead of the Competition

LaunchDarkly sponsor

React Render Tracker — A tool to discover performance issues related to unintentional re-renders and unmounts.

Roman Dvornov

React Recipes — As a complement to beautiful-react-hooks we covered in 254, here’s yet another collection of hooks which may save you from writing a custom hook of your own.

Craig Walker

use-cannon — What makes an animation look ‘real’? One big thing can be physics, such as provided by these hooks for React Three Fiber. The ping pong demo illustrates the principle well.

Poimandres

Reactant — Ever wish that React was more like Angular? Controversial.. but this React framework was inspired by such an idea.

Michael Lin

⚡️ Quick Bits:

react-monacoeditorMonaco is the name for the code editor used within Visual Studio Code. Here it is, presented as a React component.

react-native-iap — Access the basic in-app purchase capability on Android or iOS.

react-web-editor — Create your own WYWIWYG editor.

use-resize-observer — Detect element resizing as illustrated in the demo.

Chartbrew — Create beautiful charts directly from connected databases.

Leave a Reply

Your email address will not be published. Required fields are marked *