Question: Having trouble deploying a `react-router` application to Netlify. Route path '/' returns empty but if I manually type the other paths, they work fine. Would appreciate any help here.

This is what my app.js looks like:

```
import './App.scss';
import { Routes, Route, Outlet } from 'react-router-dom';

// PERSISTENT LAYOUT
const PersistentLayout = () => {
  return (
    <>
      <Logo />
      <StarHead />
      <Outlet />
    </>
  );
};

function App() {
  return (
    <div className="App">
      <Routes>
        <Route path="/" element={<PersistentLayout />}>
          <Route index element={<Home />} />
          <Route path="/add-token" element={<AddToken />} />
          <Route path="/edit-token/:id" element={<EditToken />} />
        </Route>
      </Routes>
    </div>
  );
}

export default App;

```

Index.js:

```
import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
import { BrowserRouter } from 'react-router-dom';

// PROVIDERS
import { GlobalProvider } from './context/GlobalState';

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  <BrowserRouter>
    <GlobalProvider>
      <App />
    </GlobalProvider>
  </BrowserRouter>
)

```

Answer: 
Because what you see in the Inspector is **not** the [property](https://learn.microsoft.com/dotnet/csharp/programming-guide/classes-and-structs/properties)

```
public string fullname { ... }

```

but rather the serialized [**field**](https://learn.microsoft.com/dotnet/csharp/programming-guide/classes-and-structs/fields)

```
public string FullName;

```

You can already see that on the naming - `fullname` would be displayed as `Fullname` not as `Full Name` as per [`ObjectNames.NicifyVariableName`](https://docs.unity3d.com/ScriptReference/ObjectNames.NicifyVariableName.html) ;)

Unity's Serializer doesn't serialize properties by default - see [Script Serialization](https://docs.unity3d.com/Manual/script-Serialization.html) -> `Serialization of properties`.

---

You can either add a backing field implementation like you also did for the name e.g.

```
// In that case I would always rather go for private
// anything else is just confusing / why would you use the property 
// when you can anyway read/write the field directly
[SerializeField] private int age;

public int Age
{
    get => age;
    set => age = value;
}

```

or - as already mentioned by [this answer](https://stackoverflow.com/a/73445252/7111561) - force serialize the property via (unfortunately undocumented for whatever reason)

```
[field: SerializeField]
public int Age { get; set; }

```

as also mentioned by the other answer this has some hickups (see e.g. [this thread](https://forum.unity.com/threads/c-7-3-field-serializefield-support.573988/page-2)) though
Unity Editor dont show property in Inspector, you see on `public string FullName` field but not `public string fullName` property. Make public field for Age to see this in inspector