Owner: Brian Vaughn, Sebastian Silbermann
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:
const { writeFileSync } = require('fs') | |
const path = require('path') | |
const { StatsWriterPlugin } = require('webpack-stats-plugin') | |
/** | |
* @type {import('next').NextConfig} | |
*/ | |
const config = { | |
webpack: (config, { isServer, nextRuntime, dev }) => { | |
config.plugins.push( |
// jonschlinkert/is-object | |
type IsObjectObject<T> = T extends | |
| AnyArray | |
| AnyFunction | |
| boolean | |
| null | |
| number | |
| string | |
| symbol | |
| undefined |
#!/bin/bash | |
set -e | |
branchToSplit="feat/react/deprecated-react-node-array" | |
title="Remove usage of deprecated ReactChild" | |
message="This PR removes the usage of the deprecated \`ReactChild\` type (see https://github.com/DefinitelyTyped/DefinitelyTyped/discussions/64451)." | |
mergeBase=$(git merge-base origin/master $branchToSplit) | |
types=( $(git diff --name-only $mergeBase $branchToSplit | grep -oE 'types/[^/]+/' | cut -d/ -f2 | uniq) ) |
git diff 1a5956fbfda99ad3392a1813bd0822d39c46585f HEAD | sed 's|types/react/|types/react/ts5.0/|' | git apply |
Owner: Brian Vaughn, Sebastian Silbermann
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:
Using Chrome
// Press ctrl+space for code completion | |
export default function transformer(file, api) { | |
const j = api.jscodeshift; | |
function hasPropsArgument(node) { | |
return node.params.length === 0 || node.params[0].name === 'props'; | |
} | |
function isFunctionComponent(path) { | |
const { node } = path; |
List of the 86 React Working Group members built with https://1zbjq.csb.app/.