@yellowspot/web-utils
v0.1.4
Published
# npm [@yellowspot/web-utils](https://www.npmjs.com/package/@yellowspot/web-utils)
Downloads
2
Readme
@yellowspot/web-utils
npm
Components
Image with fallback/placeholder
import { Img } from '@yellowspot/web-utils';
import placeholder from './placeholder.png';
...
<Img
src="https://some.image.png"
fallback={placeholder}
alt="logo"
height="140"
//...others img valid props
/>
Development
Getting Started with Create React App
This project was bootstrapped with Create React App.
In the project directory, you can run:
npm start
Runs the sample app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
npm run test
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
npm run build
Builds the library for production to the dist
folder.\