I noticed all of the other tinder react projects are complicated and I wanted an simpler version where you can get started and understand the code as easy and fast as possible
It renders one card at an time for increased performance and less load
The like and dislike function is already attached
Requirements:
-
Bootstrap V4 (For the cards)
-
Reactjs (well...)
-
Jquery (For bootstrap)
-
Tether (For bootstrap)
<script src="https://npmcdn.com/[email protected]/dist/react.js"></script>
<script src="https://npmcdn.com/[email protected]/dist/react-dom.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.23/browser.min.js"></script>
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
<script src="https://npmcdn.com/[email protected]/dist/js/tether.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.5/css/bootstrap.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.5/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.13.1/JSXTransformer.js"></script>
<script type="text/babel" src="src/main.js"></script>
Include all the scripts and bootstrap css
-
<div id="container"></div>
Insert this in the html
-
inside the main.js
"posts": [ { "title": "Hello ", "body": "My name is ", "id": "1" }, { "title": "testing", "body": "testing", "id":"2" } ] }
Change the file as much as you want or use a json file.
-
Enjoy
-
Fork the project
-
Make your changes
-
Sumbit the changes as an pull request to this project
This project is licensed under the MIT License. You already know.
Please still give credit where its due however. I worked hard on this project :)