Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cricket-australia/play-cricket-react-ui

Package Overview
Dependencies
Maintainers
5
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cricket-australia/play-cricket-react-ui

This is a react UI/components library intended for the Play Cricket site.

  • 0.4.11
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-33.33%
Maintainers
5
Weekly downloads
 
Created
Source

Play Cricket React Components

This is a react UI/components library intended for the Play Cricket site.

Contents

  • Contents
  • Usage
  • Contributing

Usage

🚀 Getting started

Include this script tag in the Play Cricket site:

<script src="https://unpkg.com/play-cricket-react-components@latest" crossorigin></script>
Example usage in HTML page
<body onload="setup()">
  <script>
    function setup() {
      renderComponent({type: 'Heading', props: { text: 'Hello world', color: 'white' }, elementId: 'react-test'});
    }
  </script>
  ...

📖 API Overview

This library will expose the

renderComponent({})

function which takes in an object {} with these properties as an arg:

  • type string
  • props object
  • elementId string
Example

The following snippet will render the <Heading /> component within a <div id="club-heading"></div> element in the Play Cricket site, outputting the message 'Hello World!'.

renderComponent({type: 'Heading', props: { text: 'Hello World!' }, elementId: 'club-heading'})

🔍 API Reference

To be updated

Contributing

Local installation

npm install

FAQs

Package last updated on 31 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc