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
| /* How to implement?: | |
| const initialForm = { | |
| name: '', | |
| email: '', | |
| age: 0, | |
| } | |
| const [ formValues, handleInputChange, reset ] = useForm(initialForm); |
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
| $filenames = @(get-childitem -Path "<Folder>\*.<Extension>" | % { $_.FullName }) | |
| foreach ($file in $filenames) | |
| { | |
| $replacementStr = '<Replacement string>' | |
| (Get-Content $file) | | |
| Foreach-object { $_ -replace '<String to relace>' , $replacementStr } | | |
| Set-Content $file | |
| Write-Host Processed $file | |
| } |