What do you want to save?
Add Code snippet
New code examples
-
TypeScript 2021-08-29 02:12:01
install material ui typescript
// Installation npm install @material-ui/core // or yarn add @material-ui/core // In order for types to work, you have to at least have the following options enabled in your tsconfig.json: { "compilerOptions": { "lib": ["es... Add solution -
Javascript 2021-08-29 00:35:02
react native charts
yarn add react-native-chart-kit import { LineChart, BarChart, PieChart, ProgressChart, ContributionGraph, StackedBarChart } from "react-native-chart-kit"; import { Dimensions, View, Text } from 'react-native'; <View> <T... Add solution -
Shell/Bash 2021-08-28 07:06:01
install dependencies @material-ui/lab/Rating
yarn add @material-ui/lab Add solution -
Javascript 2021-08-28 00:03:02
Access to XMLHttpRequest has been blocked by CORS policy node js
/* npm i cors or yarn add cors then in your node app */ const cors = require('cors'); const corsOptions ={ origin:'http://localhost:3000', credentials:true, //access-control-allow-credentials:true optionSuccessStatus:200 } app.use... Add solution -
-
Shell/Bash 2021-08-26 23:09:02
upload react project to github
Make sure you have already created a repo in github. In "package.json" file of project add - "homepage": "https://username.github.io/reponame" Run Install - "yarn add gh-pages" In "package.json/scripts" ad... Add solution
Best helpers
Ranking is empty