@adeyahya/rrp 中文文档教程

发布于 3年前 浏览 6 更新于 3年前

React Responsive Image

Installation

yarn add @adeyahya/rrp

# or

npm install @adeyahya/rrp --save

Usage

import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { Provider, ResponsiveImage } from '../.';

const App = () => {
  return (
    <Provider>
      <ResponsiveImage src="https://res.cloudinary.com/dt2mntbmf/image/upload/v1597818712/image-20200819133002593_qqtn6b.png">
        <img width="100%" />
      </ResponsiveImage>
    </Provider>
  );
};

ReactDOM.render(<App />, document.getElementById('root'));

license

麻省理工学院

React Responsive Image

Installation

yarn add @adeyahya/rrp

# or

npm install @adeyahya/rrp --save

Usage

import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { Provider, ResponsiveImage } from '../.';

const App = () => {
  return (
    <Provider>
      <ResponsiveImage src="https://res.cloudinary.com/dt2mntbmf/image/upload/v1597818712/image-20200819133002593_qqtn6b.png">
        <img width="100%" />
      </ResponsiveImage>
    </Provider>
  );
};

ReactDOM.render(<App />, document.getElementById('root'));

license

MIT

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文