3.0.9 • Published 7 months ago

@rodlopez/clean-code v3.0.9

Weekly downloads
-
License
ISC
Repository
github
Last release
7 months ago

Getting Started

Usage

import { useRequest, AsyncRequestRender } from "@rodlopez/clean-code";

const Component = () => {
  const repository = new Repository();
  const request = useRequest<User>({
    method: repository.getUser(),
  });
  return (
    <AsyncRequestRender<User>
      state={state}
      RenderLoading={<div />}
      Render={(user) => <MyUserUIMock user={user} />}
      RenderError={(errorObject) => <MyErrorUIMock error={errorObject} />}
    />
  );
};

export default Component;

Documentation

See https://rodlopezdev.github.io/rodlopez-clean-code

3.0.9

7 months ago

3.0.4

8 months ago

3.0.3

8 months ago

3.0.2

8 months ago

3.0.1

8 months ago

3.0.8

7 months ago

3.0.7

7 months ago

3.0.6

7 months ago

3.0.5

8 months ago

3.0.0

8 months ago

2.0.1

10 months ago

2.0.0

10 months ago

1.1.13

11 months ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago