Skip to content

hooks

1 post with the tag “hooks”

LaunchDarkly React SDK Migration to OpenFeature: A Manual-Review Playbook

A LaunchDarkly React SDK migration is a different problem from migrating a Node.js service. When you run flaglint migrate --apply on a server-side codebase, it rewrites ldClient.boolVariation call sites automatically. React is different. The LaunchDarkly React SDK ships a hooks-based evaluation API — useFlags, useVariation, useLDClient — that is structurally coupled to component trees and context providers. FlagLint detects every call site and surfaces them in the migration plan, but the rewrites are flagged as manual review items, not auto-applied.

This article is for engineers who have run FlagLint on a React codebase and are looking at a list of manual review items. It covers what each hook maps to in the OpenFeature React SDK, shows real before/after diffs for each conversion, and explains how to lock the boundary in CI once migration is complete.