react-addbackground is a React.js library for addbackground.
react-addbackground is available on NPM, and can be installed with either npm or yarn:
yarn add react-addbackground
See: Example.
import React from 'react';
import { Background } from 'react-addbackground';
const App = () => {
return (
<div style={{ minHeight: '400px', position: 'relative' }}>
<Background type="triangles" backgroundColor="black" />
</div>
);
};