reaflex

Easy Flexbox in React

1. Install

npm i reaflex
Or
yarn add reaflex

2. Use

import { Flex, Item } from "reaflex";

const MyComponent = () => {
  return (
    <Flex direction="column" alignItems="center" justifyContent="center">
        <Item alignSelf="flex-end">Hello</Item>
        <Item as="span">Flex</Item>
        <Item alignSelf="flex-start">Box</Item>
    </Flex>
  );
};

Demo