react-cropper
reactour
Our great sponsors
react-cropper | reactour | |
---|---|---|
1 | 9 | |
1,982 | 3,729 | |
1.4% | - | |
4.1 | 7.5 | |
8 months ago | 25 days ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
react-cropper
-
this.setState is not a function ( trying Upload Image) ReactJs
Reactjs Try create upload function with cropper component. But when I try set state it says that Uncaught TypeError: this.setState is not a function at FileReader.reader.onload Component import React, { Component, PropTypes } from 'react'import { Link, browserHistory } from 'react-router'import { connect } from 'react-redux'import Cropper from 'react-cropper';class HeadPortrait extends Component { constructor(props) { super(props) this.state = { image: '', } } clickadd(e) { document.getElementById('uploadfiles').click(); } loadFile(e) { e.preventDefault(); var reader = new FileReader(); reader.onload = function () { this.setState({ image: reader.result }) }; reader.readAsDataURL(e.target.files[0]); ; }; _crop() { // image in dataUrl console.log(this.refs.cropper.getCroppedCanvas().toDataURL()); } render() { return ( Add Image Save ) }}function mapStateToProps(state) { return { // stories: state.stories }}export default connect(mapStateToProps)(HeadPortrait) Trying do like in example https://github.com/roadmanfong/react-cropper/blob/master/example/src/Demo.jsx Answer link : https://codehunter.cc/a/reactjs/this-setstate-is-not-a-function-trying-upload-image-reactjs
reactour
- Training for the website
-
React tools for in-app tutorials?
Never used it but this seems pretty popular https://github.com/elrumordelaluz/reactour
- In-page tutorual
-
Need help with creating the tutorial tooltip on the dashboard
Something like this? https://reactour.js.org/
-
How the Strapi Marketing Team Uses Strapi
I was able in FoodAdvisor to include a Preview button in the content manager and to create a guided tour plugin using react-tour package. Without it, I should have waited for these features to be released.
-
How to make a tutorial for new website users?
Try https://reactour.js.org/ you should be able to restyle it to fit your needs.
-
Create a guided tour plugin in the admin panel
In this tutorial I will show you how to create your own plugin on Strapi (version 3.4.6) and more precisely how to use reactour to create a guided tour which can be very useful for content managers out there who will have to master Strapi's admin to manage their content.
-
Some websites have a quick guide showing how to use them but adding overlays on elements explaining how to use the website and its features to any new user. How are these done?
If you use React, try reactour. It is extremely simple to use and you can see an example of it in my open source cross browser extension - TabMerger.
-
Foodadvisor Updates February 2021
We are using reactour, and we have made a guided-tour plugin in the app. You can see how it works here: https://github.com/strapi/foodadvisor/tree/master/api/plugins/guided-tour Feel free to give it a try or event contribute to it ;)
What are some alternatives?
chakra-ui - ⚡️ Simple, Modular & Accessible UI Components for your React Applications
ngx-joyride - Angular Joyride/Tour library
react-easy-crop - A React component to crop images/videos with easy interactions
driver.js - A light-weight, no-dependency, vanilla JavaScript engine to drive the user's focus across the page
react-easy-crop - Ricardo fork of https://valentinh.github.io/react-easy-crop/
Next.js - The React Framework
rsuite - 🧱 A suite of React components .
super-auto-pets-db - This database website is an un-official guide and reference for the pets, food and stats from the game Super Auto Pets.
awesome-strapi - A curated list of awesome things related to Strapi
foodadvisor - 🥘 THE Strapi demo application
community-content - Contribute and collaborate on educational content for the Strapi Community
react-native-rheostat - inspired by Airbnb's rheostat, a powerful slider with assorted data visualized charts