Quran Common Components are a set of React UI components. The aim is to promote a consistent and reusable component library.
npm install --save quran-components
yarn add quran-components
import React from 'React';
import { Button, Jumbotron } from 'quran-components';
const CustomBody = () => (
<div>
<Button />
<Jumbotron />
</div>
);
Also to reduce file size, you can require individual components:
import React from 'React';
import Button from 'quran-components/lib/Button';
const MyButton = () => (
<div>
<Button />
</div>
);
var React = require('react');
var component = require('quran-components');
var Button = component.Button;
var MyButton = React.createClass({
render: function() {
return (
<div>
<Button />
<div>
);
}
});