Created
November 6, 2020 16:10
-
-
Save Marwil96/ac19f17df8acdafb368f6dcae11d9ee7 to your computer and use it in GitHub Desktop.
Revisions
-
Marwil96 created this gist
Nov 6, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ import React from 'react'; import styled from 'styled-components'; const GridWrapper = styled.section` display: grid; grid-template-columns: ${props => `repeat(${props.columns}, 1fr)`}; ` const Grid = ({columns, children, style}) => { return ( <GridWrapper columns={columns} style={style}> {children} </GridWrapper> ) } export default Grid;