From b7e3026260482f6b6be582802aba6fb0b5ddc8dc Mon Sep 17 00:00:00 2001 From: jony89 <ariel@emath.co.il> Date: Mon, 22 Feb 2021 20:38:11 +0200 Subject: [PATCH] [docs] Add codesandbox example for styled-components (#25050) --- .../create-react-app-with-styled-components/README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/examples/create-react-app-with-styled-components/README.md b/examples/create-react-app-with-styled-components/README.md index 3f29b3eca9e22f..a2db850710308e 100644 --- a/examples/create-react-app-with-styled-components/README.md +++ b/examples/create-react-app-with-styled-components/README.md @@ -16,9 +16,13 @@ npm install npm start ``` -or: +## CodeSandbox -[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/github/mui-org/material-ui/tree/HEAD/examples/create-react-app-with-styled-components) +Note that CodeSandbox is not supporting react-app-rewired, yet you can [still see the code](https://codesandbox.io/s/github/mui-org/material-ui/tree/HEAD/examples/create-react-app-with-styled-components). + +The following link leverages this demo: https://next.material-ui.com/guides/interoperability/#change-the-default-styled-engine with Parcel's alias feature within the `package.json` + +[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/styled-components-interoperability-w9z9d) ## The idea behind the example