Posts by Filipe Macedo • 141 points
8 posts
-
3
votes1
answer71
viewsA: When should I use "{ ...props }" instead of "props" in React?
In the first example you receive the object - containing all the attributes passed. e. g. export default function Button(props) { return <button style={{ backgroundColor:…
-
0
votes1
answer383
viewsA: Data formatting in Node.JS, with Sequelize and Moment.JS
The problem is you’re using moment(). To format the project creation date, you need to inform it to Moment using the parameter. For example: (function() { var NowMoment = moment("<%=…
-
0
votes2
answers560
viewsA: Javascript - Splitting into an array
Your problem is conditional, the challenge asks you to print the divisible number, for you to know if a number is divisible by 2 it is necessary to check if the rest is zero. In the code: if…
-
1
votes2
answers152
viewsA: Error loading CSS file, cannot find directory
In your file layout.njk you are returning a level to import the about.css where the folder styles exists only in the public folder. How you are serving the folder public as static, you can import…
-
3
votes1
answer37
viewsA: How to set constant value
I don’t know if I really understood your problem... Apparently the value of the state isn’t changing because your useEffect only runs when the component is mounted, you need to make it run when the…
-
1
votes1
answer35
viewsA: How can I reuse a Handlechange?
Problems encountered Previously on your Function handleChange expected to receive in the first parameter the event of onChange and you were not passing the same to the aforementioned Function. Your…
-
0
votes1
answer42
viewsA: How to put value in select
Suppose you should have a table just for allocate tag values. I believe you already use related tables. Then you must have saved only the brand ID in the table where you are searching for these…
phpanswered Filipe Macedo 141 -
0
votes2
answers97
viewsA: Form system by base date how to pick up data in $_POST
if (isset($_POST['nome'])) { foreach($_POST['nome'] as $key => $value) { echo 'Nome: '.$value; echo '<hr/>'; } }