React Af screenshot

React Af

Author Avatar Theme by Donavon
Updated: 15 Mar 2018
140 Stars

Allows you to code using certain React.next features today! Perfect for component library maintainers.

Overview:

The React AF project is designed to help React component library developers who may not have control over the version of React that their library runs on. It allows developers to use certain React.next features on older versions of React, helping them focus more on the business problem at hand rather than the specific environment.

Features:

  • Support getDerivedStateFromProps on older versions of React: Allows developers to use the new static lifecycle getDerivedStateFromProps on older versions of React.
  • Supports Fragment on older versions of React: Enables the use of the new <Fragment /> component in React 16.2 and above on older versions of React.
  • Supports createContext on older versions of React: Provides support for the new context API introduced in React 16.3 on older versions of React.

Installation:

To install React AF, you can use either npm or yarn. Simply run the following command:

npm install react-af

or

yarn add react-af

Summary:

React AF is a tool that allows React component library developers to utilize certain React.next features on older versions of React. It provides support for features such as getDerivedStateFromProps, <Fragment />, and createContext. By using React AF, developers can code their library components as if they are running on a modern version of React, even when their code is running on an older version. This helps them focus on the business problem at hand rather than worrying about the specific version of React.