React Fiber is an ongoing reimplementation of React's core algorithm. It is the culmination of over two years of research by the React team.
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
| //code can be null/undefined so lets fix it | |
| export const formatOrderCode = ( code ) => { | |
| if ( code !== null && code !== undefined ) { | |
| return code.toUpperCase(); | |
| } | |
| return null; | |
| } |
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
| import com.fasterxml.jackson.databind.DeserializationFeature | |
| import com.fasterxml.jackson.databind.ObjectMapper | |
| import com.fasterxml.jackson.databind.SerializationFeature | |
| import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper | |
| import org.springframework.context.annotation.Bean | |
| import org.springframework.context.annotation.Configuration | |
| @Configuration | |
| class Json { |
Trying to get my feet wet with kotlinjs. Here are a few things that are not so obvious that could help you.
- Make sure you use the Gradle > Kotlin Javascript. This has all the tools you need for auto reload/compile etc.
- When you run the project from Intellij, add the --continuous arguments from within IntelliJ Run. This ensures that when you do any changes, your project gets recompiled and reloaded automatically on your browser.
- Edit src/resources/index.html. The <script> tag has the bundled js code is under the head element. This will cause issue because your javascript will get executed before the whole document is rendered. Place before the end of the body closing tag.
Ref:
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
| https://stackblitz.com/edit/vitejs-vite-opq6uv9r?file=src%2Fmain.js |
OlderNewer