Skip to content

Instantly share code, notes, and snippets.

View markopavlovic's full-sized avatar
👨‍💻

Marko Pavlovic markopavlovic

👨‍💻
View GitHub Profile
import React from "react";
import dateFns from "date-fns";
class Calendar extends React.Component {
state = {
currentMonth: new Date(),
selectedDate: new Date()
};
renderHeader() {
import React from "react";
import dateFns from "date-fns";
class Calendar extends React.Component {
state = {
currentMonth: new Date(),
selectedDate: new Date()
};
renderHeader() {}
/* FONT IMPORTS */
@import url(https://fonts.googleapis.com/css?family=Open+Sans:300,400,700);
@import url(https://fonts.googleapis.com/icon?family=Material+Icons);
.icon {
font-family: 'Material Icons', serif;
font-style: normal;
display: inline-block;
vertical-align: middle;
import React from "react";
import Calendar from "./components/Calendar";
import "./App.css";
class App extends React.Component {
render() {
return (
<div className="App">
import React from "react";
import dateFns from "date-fns";
class Calendar extends React.Component {
render() {
return (
<div>
<div>Header</div>
<div>Days</div>
<div>Cells</div>
@markopavlovic
markopavlovic / (1) firebaseMiddleware.js
Last active March 1, 2018 09:23
Firebase Middleware on Redux - Follow up on "react-redux-universal-hot-example" (Firebase login example)
/**
* @path src/redux/middleware
*
* Extract from clientMiddleware example in order to showcase
* the difference and help in understanding the same.
*
* @diff - Differences with "react-redux-universal-hot-example"
*/
export default function firebaseMiddleware(fireRef) {
return ({dispatch, getState}) => {
function istraj() {
git checkout $1
}
function natraj() {
git push $1 --force
}
function utraj() {
git merge $1