New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

create-apr

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-apr

action packed react starter

latest
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

to: src/ui/readme.md

UI

ui is for reusable components, which should have 0 concept of anything else that is in your app.

Examples

Components that belong in ui.

UI components should be simple, pure, and require no context of the application. Try to imagine that one day, you want to publish an npm package, based on your ui elements. It should be as easy as copying this folder, and putting a package.json file in it (and maybe a build system). Think of this as your own personal bootstrap.

  • Button - simple ui component. It requires no context, or anything to be loaded in your app.
  • Grid - Meta component for arranging other components or children
  • Form inputs - keep your UI consistent by defining form inputs here.
  • Avatar - Takes an image, and creates a specific size.
  • Loader - Spinner or progress bar to show throughout the application.

Components that do not belong in ui.

UI components that are specific to something in your application belong in components.

  • UserAvatar - maybe it contains a link to user profiles, has knowledge of the user model, etc...

FAQs

Package last updated on 22 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts