Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/eykrehbein/atomize

A collection of tiny, modular & type-safe libraries that enhance the default React workflow
https://github.com/eykrehbein/atomize

library react typescript

Last synced: about 1 month ago
JSON representation

A collection of tiny, modular & type-safe libraries that enhance the default React workflow

Awesome Lists containing this project

README

        




Atomize


A collection of tiny, modular & type-safe libraries that enhance the default React workflow

## Packages

- [@atomize/component](https://www.npmjs.com/package/@atomize/component) - A toolkit for creating stylizable and extensible React components
- [@atomize/context](https://www.npmjs.com/package/@atomize/context) - Enhanced React-Context management

- (WIP) @atomize/redux

## Docs

You can find a well structured documentation at [docs.atomize.xyz](https://docs.atomize.xyz)

## Examples (more can be found in the docs)

### Creating stylable and animatable components

```tsx
import { createBaseComponent, px, percent } from "@atomize/component";

const Button = createBaseComponent("button")`
background-color: red;
`;

export const App = () => (

Click

);
```

### Creating context and provider at the same time

```tsx
import { createContext } from "@atomize/context";

const { Context, Provider } = createContext(
{ email: "[email protected]" },
() => {
if (condition) return { email: "[email protected]" };

return { email: "[email protected]" };
}
);

// ---

const App = () => Hello World;
```

# LICENSE

MIT