All Questions
8 questions
1
vote
1
answer
113
views
Can't update state in React via key event
I'm making a calculator with React, when I click the divs they trigger a function to update the state which goes into the display output of the calculator, I have no problem at all doing this with ...
0
votes
2
answers
2k
views
Cannot read properties of undefined (React)
I have an issue with my code, i have a search input and a list of countries
When i type some words i have an error which cause to my app collapse
I've been trying for about two days to find the ...
0
votes
1
answer
98
views
What metrics does CSS use when not specifying it when changing size?
I noticed when I use style in div or any other elements, without specifying size metrics.
It uses one sizing.
But when I use class and also do not specify metrics of size then it uses completely other ...
0
votes
2
answers
53
views
change value of input field react
I have an input field in which I am pre populating the value of, with the value from the DB. it is a record that already exists, in which I would like to edit. The input field however, is not letting ...
0
votes
3
answers
1k
views
React ClassName is not applying on the text
I started coding react these days. Today I've opened a new project and when I tried to apply a style className but it's showing the regular <span> without any style. This is my counter.jsx code:
...
0
votes
1
answer
172
views
How To Call A JavaScript Function Returned From NodeJS in ReactJS JSX
I want to make a function that creates a button in the React DOM.
That function should be returned from NodeJS.
NodeJS - localhost:8000/stripe-form returns:
function myFunction() {
var btn = ...
6
votes
3
answers
218
views
Data structure for highlights of words in a string with JavaScript
I have a string
const string = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent tristique elit in volutpat iaculis. Proin a tincidunt turpis, et condimentum libero. Duis convallis ...
0
votes
1
answer
154
views
How change the title of a page before it loads JSX
I want change the title of a class, and I achieve it with document.title = "flayers" but I put this code in the constructor,then firt I have a default title and change it then when I refer to the url, ...