1.5.5 • Published 6 years ago
play-cricket-react-components v1.5.5
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
stringprops
objectelementId
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
6 years ago
1.5.4
6 years ago
1.5.3
6 years ago
1.5.1
6 years ago
1.5.0
6 years ago
1.5.2
6 years ago
1.4.2
6 years ago
1.4.1-d
6 years ago
1.4.1
6 years ago
1.4.0
6 years ago
1.2.10
6 years ago
1.2.9
6 years ago
1.2.8
6 years ago
1.2.7
6 years ago
1.2.6
6 years ago
1.2.5-b
6 years ago
1.2.5
6 years ago
1.2.4
6 years ago
1.2.3
6 years ago
1.2.2
6 years ago
1.2.1
6 years ago
1.2.0
6 years ago
1.1.1
6 years ago
1.1.0
6 years ago
1.0.0
6 years ago