/react-domain-verify

Verify that the access domain name displays content.

Primary LanguageTypeScriptMIT LicenseMIT

react-domain-verify

Build & Deploy issues issues Forks Stars Release npm version

Verify that the access domain name displays content.

Quick Start

npm i @uiw/react-domain-verify
import DomainVerify from '@uiw/react-domain-verify';

function Demo() {
  return (
    <div>
      <DomainVerify href="https://uiwjs.github.io">
        访问 https://uiwjs.github.io 域名显示子组件
      </DomainVerify>
      <DomainVerify href="https://uiw.gitee.io">
        访问 https://uiw.gitee.io 域名显示子组件
      </DomainVerify>
      <DomainVerify href="uiw.gitee.io">
        访问 https://uiw.gitee.io 和 http://uiw.gitee.io 域名显示子组件
      </DomainVerify>
    </div>
  );
}

Development

Runs the project in development mode.

# Step 1, run first, listen to the component compile and output the .js file
# listen for compilation output type .d.ts file
npm run watch
# Step 2, development mode, listen to compile preview website instance
npm run start

Production

Builds the app for production to the build folder.

npm run build

The build is minified and the filenames include the hashes. Your app is ready to be deployed!

Contributors

As always, thanks to our amazing contributors!

Made with github-action-contributors.

License

Licensed under the MIT License.