【文件属性】:
文件名称:react-banner:动态标题标题组件
文件大小:527KB
文件格式:ZIP
更新时间:2021-02-03 00:41:40
react search mobile component header
React横幅
灵活的横幅组件,可以作为react插件使用。
安装
可以从npm安装此组件:
npm install react-banner
您还可以直接从/dist获取缩小JavaScript和CSS,并将其包含在[removed]标记中。
用法
以下示例显示了最基本的设置。 请注意,它假设是一个webpack环境,并且启用了像这样的预处理器以允许ES6 +和JSX ...
import React from 'react'
import Banner from 'react-banner'
import 'react-banner/dist/style.css'
const Example = props => {
return (
< Banner
logo = "React Banner"
url = { window . location . pathname }
items = { [
{ "content" : "Example Link"
【文件预览】:
react-banner-master
----.gitignore(61B)
----webpack.dist.js(2KB)
----README.md(2KB)
----webpack.docs.js(3KB)
----CHANGELOG.md(5KB)
----docs()
--------root.bundle.js(284KB)
--------5.root.bundle.js(4KB)
--------root.bundle.js.map(859KB)
--------2.root.bundle.js.map(2KB)
--------3.root.bundle.js(4KB)
--------4.root.bundle.js(4KB)
--------0.root.bundle.js.map(10KB)
--------1.root.bundle.js(10KB)
--------0.root.bundle.js(5KB)
--------1.root.bundle.js.map(11KB)
--------3.root.bundle.js.map(5KB)
--------2.root.bundle.js(2KB)
--------index.html(574B)
--------404.html(2KB)
--------favicon.ico(31KB)
--------6.root.bundle.js.map(4KB)
--------6.root.bundle.js(3KB)
--------4.root.bundle.js.map(4KB)
--------5.root.bundle.js.map(5KB)
--------spa-redirect.js(1KB)
----LICENSE(1KB)
----.eslintrc(431B)
----package.json(2KB)
----dist()
--------react-banner.min.js(15KB)
--------style.css(3KB)
----src()
--------links()
--------icons()
--------docs.jsx(784B)
--------logo()
--------site()
--------sidebar()
--------search-results()
--------banner()
--------404.html(2KB)
--------favicon.ico(31KB)
--------spa-redirect.js(1KB)
----.babelrc(212B)
----.npmignore(138B)
----.editorconfig(250B)
----package-lock.json(471KB)