Posts by Alessander França • 386 points
11 posts
-
1
votes1
answer4763
viewsA: How to Get Another Component Variable
There are two possibilities: The first is if the component you want to read the variable is child of the component that has the loginUsuarioParam variable (Utilsnavusuariocomponent). In this case…
-
0
votes1
answer141
viewsA: Javascript - Continuity of an array using arithmetic operations to find the index
All right, come on: I believe your conditions are the least of your problems. I didn’t try to improve the conditions because I was a little confused, I believe you need to think of a better logic.…
-
0
votes1
answer361
viewsA: Create routes using React Route
Your problem is the route you take on your server to the React files. If you are using webpack and express just you do a combination of the two to serve your files in the desired place. An example:…
react-routeranswered Alessander França 386 -
0
votes1
answer1644
viewsA: Mount calendar with React
I made a calendar in React that integrates with a holiday api. To solve the problem of days and months I used the variable days and months in vector form: this.state = { days: [31, 28, 31, 30, 31,…
-
0
votes4
answers1118
viewsA: Automate click of button
Since you already have jquery imported, you can use a script tag before body. First declare a tag button in your HTML document. <html> ... <button id="seuId" />Botão</button>…
-
1
votes1
answer1022
viewsA: Static routes in React for two separate pages
If I understand correctly, your problem is only in setting the React-router-dom. index.jsx import { render } from 'react-dom'; import Route from './route'; const rootEl =…
-
1
votes1
answer468
viewsA: The action takes an attribute from the class component but does not enter the Reducer-React
One of the possible problems is that you are not using Object.assign in your reducers: export default (state = INITIAL_STATE, action) => { switch(action.type) { case 'MSG_CHANGED': return…
reactanswered Alessander França 386 -
2
votes1
answer901
viewsA: How to change the value of a defaultProps on an React component?
You did not declare the constructor and passed the props to your class: class Loading extends Component { constructor(props) { super(props); } render() { const loadingClasses = classNames({…
reactanswered Alessander França 386 -
14
votes3
answers5190
viewsA: What is the difference between Graphql and REST?
Graphql is a search language, until then REST also does. The difference is that with Graphql you seek exactly what you want (a front-end know exactly how it works). For example, I made an API in…
-
3
votes3
answers954
viewsA: Vertical slider navigation including highlight thumbnails
Without some code it’s hard to help you 100%. But come on: This slider uses the same list of images for the two sliders (in the main slider not only has the image, but all right). What I would do is…
-
1
votes1
answer329
viewsA: Z-INDEX and BOX-SHADOW
I believe you should change your CSS code: header{ width: 100%; height: auto; display:inline-block; background:url(images/bordatopo.png) top repeat-x; margin-bottom:10px; z-index:999; } .logo img{…