<button>Let's Go !</button>
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 characters
| sdf |
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 characters
| import React from 'react'; | |
| import ReactNotifications from 'react-notifications-component'; | |
| import Homepage from './Homepage'; | |
| function App() { | |
| return ( | |
| <div> | |
| <ReactNotifications /> | |
| <Homepage/> | |
| </div> |
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 characters
| function MyNotification() { | |
| return ( | |
| <div style={{ | |
| display: 'flex', | |
| backgroundColor: '#0f2f26', | |
| borderRadius: 5, | |
| }}> | |
| <Avatar/> | |
| <div> | |
| <h4>Virgool.io</h4> |
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 characters
| function Homepage() { | |
| return ( | |
| <> | |
| My Website | |
| <button | |
| onClick={() => { | |
| store.addNotification({ | |
| content: MyNotification, // 👈 | |
| container: 'bottom-right', | |
| animationIn: ["animated", "fadeIn"], |
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 characters
| import React from 'react'; | |
| import { store } from 'react-notifications-component'; | |
| import 'react-notifications-component/dist/theme.css'; | |
| import 'animate.css'; | |
| function Homepage() { | |
| return ( | |
| <> | |
| My Website | |
| <button |
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 characters
| const options = []; | |
| for (let i = 0; i < 50; ++i) { | |
| options.push({ | |
| value: i + 1, | |
| label: `Option ${i + 1}` | |
| }); | |
| } | |
| const sleep = ms => | |
| new Promise(resolve => { |
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 characters
| getLoginAPI = () => { | |
| let details = { | |
| 'username': 'username', | |
| 'password': 'demo' | |
| }; | |
| let formBody = []; | |
| for (let property in details) { | |
| let encodedKey = encodeURIComponent(property); |
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 characters
| # First, check out the commit you wish to go back to (get sha-1 from git log) | |
| git reset --hard 9d3c3a0caa7f7b35ef15adb96fc80fcbb59ac72a | |
| # Then do a forced update. | |
| git push origin +9d3c3a0caa7f7b35ef15adb96fc80fcbb59ac72a^:develop | |
| # Push specific commit | |
| git push origin 9d3c3a0caa7f7b35ef15adb96fc80fcbb59ac72a:develop -f |
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 characters
| pre { | |
| outline: 1px solid #ccc; | |
| padding: 5px; margin: | |
| 5px; | |
| } | |
| .string { | |
| color: #008000; | |
| } |
NewerOlder
