Skip to content

Instantly share code, notes, and snippets.

View jtoar's full-sized avatar

Dominic Saadi jtoar

  • San Francisco
  • 11:44 (UTC -07:00)
View GitHub Profile
@bvaughn
bvaughn / react-dom-test-selectors.md
Last active January 9, 2023 15:46
Experimental React DOM test selector API

RFC Test Selectors

Owner: Brian Vaughn


As of facebook/react/pull/22760, the experimental Test Selector API is now available in the experimental release channel.

To test the API, first install the experimental release:

@cannikin
cannikin / redwoodrecord.md
Last active November 22, 2021 17:01
RedwoodRecord: An ORM for Redwood

RedwoodRecord

RedwoodRecord is an ORM (Object-Relational Mapping) for working with database data. Wikipedia says an ORM is for "converting data between incompatible type systems using object-oriented programming languages." In the world of web applications it usually means to a way get data in and out of your database in a way that feels more native to the language you're using, rather than trying to provide just a simple layer on top of raw SQL statements.

This document serves as a Readme Driven Development source for describing the behavior of this system.

@sebmarkbage
sebmarkbage / The Rules.md
Last active April 22, 2024 04:41
The Rules of React

The Rules of React

All libraries have subtle rules that you have to follow for them to work well. Often these are implied and undocumented rules that you have to learn as you go. This is an attempt to document the rules of React renders. Ideally a type system could enforce it.

What Functions Are "Pure"?

A number of methods in React are assumed to be "pure".

On classes that's the constructor, getDerivedStateFromProps, shouldComponentUpdate and render.