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:
typestringpropsobjectelementIdstring
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 install1.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
7 years ago
1.4.1-d
7 years ago
1.4.1
7 years ago
1.4.0
7 years ago
1.2.10
7 years ago
1.2.9
7 years ago
1.2.8
7 years ago
1.2.7
7 years ago
1.2.6
7 years ago
1.2.5-b
7 years ago
1.2.5
7 years ago
1.2.4
7 years ago
1.2.3
7 years ago
1.2.2
7 years ago
1.2.1
7 years ago
1.2.0
7 years ago
1.1.1
7 years ago
1.1.0
7 years ago
1.0.0
7 years ago