0.1.2 • Published 11 years ago
react-slidable v0.1.2
react-slidable
Usage
Install react-slidable from npm
npm install react-slidableIn your javascript, require react-slidable and render a Slidable component
var React = require('react'),
Slidable = require('react-slidable');
React.render(
<Slidable>
<div class="slide">
<h1>1. A title</h1>
<p>Some text</p>
</div>
<div class="slide">
<h1>2. Another title</h1>
<p>Another text</p>
</div>
</Slidable>,
document.body
);Add slidable.css in your
<head>
<title>...</title>
<link rel="stylesheet" type="text/css"
href="node_modules/react-slidable/lib/slidable.css">
</head>Dev
Clone the repo
git clone git@github.com:dgellow/react-slidable.git
cd react-slidableInstall dependencies
npm installBuild JSX
npm run buildor
npm run watchBuild and run examples
npm run examplesAuthor
Samuel El-Borai aka dgellow, http://webp.ch