Skip to content

Instantly share code, notes, and snippets.

View mlaursen's full-sized avatar
💭
I may be slow to respond.

Mikkel Laursen mlaursen

💭
I may be slow to respond.
View GitHub Profile
@mlaursen
mlaursen / modules.md
Last active January 25, 2022 22:30
The new Sass Module System with react-md

Table of Contents

TODO

How to import react-md files?

Most files can be updated to change @import statements to be @use '...' as *:

-@import '~@react-md/theme/dist/mixins';
@mlaursen
mlaursen / ExampleReduxForm.jsx
Created January 4, 2017 19:10
Code for example redux-form and react-md
import React from 'react';
import { Field, reduxForm } from 'redux-form';
import Button from 'react-md/lib/Buttons/Button';
import TextField from 'react-md/lib/TextFields';
const required = ['email', 'phone'];
const validate = values => {
const errors = {};
required.forEach(field => {
if (!values[field]) {