1.5.5 • Published 5 years ago

play-cricket-react-components v1.5.5

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

Play Cricket React Components

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

Contents

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
1.5.5

5 years ago

1.5.4

5 years ago

1.5.3

5 years ago

1.5.1

5 years ago

1.5.0

5 years ago

1.5.2

5 years ago

1.4.2

5 years ago

1.4.1-d

5 years ago

1.4.1

5 years ago

1.4.0

5 years ago

1.2.10

5 years ago

1.2.9

5 years ago

1.2.8

5 years ago

1.2.7

5 years ago

1.2.6

5 years ago

1.2.5-b

5 years ago

1.2.5

5 years ago

1.2.4

5 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago