Find and replace across a project changing each file in place

sd

sd {{'from "react"'}} {{'from "preact"'}} $(find . -type f)

click the source code to copy install sd on any operating system with command-not-found.com